go/types: terminating statement lists must accept trailing empty statements
griesemer opened this issue · 1 comments
griesemer commented
Per a (pending) spec change, the following code should be permitted:
package p
func f() int {
return 3
; // <<< trailing empty statement
}
See #14422 for details.
gopherbot commented
CL https://golang.org/cl/22241 mentions this issue.