golang/go

go/types: terminating statement lists must accept trailing empty statements

griesemer opened this issue · 1 comments

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.

CL https://golang.org/cl/22241 mentions this issue.