You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The go/parser accepts type literals instead if proper (value) expressions in several
cases; e.g.:
package p
func _() {
_ = []int{[]int}
_ = ([]int)
_ = a[[]int : []int]
_ = f([]int, []int)
_ <- []int
_ = []int(0)
select {
case _ <- []int:
}
}
is parsed w/o syntax errors.
There is a respective TODO in go/parser:1365 (parseExpr(lhs bool) ast.Expr method).