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
An extraction and rewrite of the logic from package suggest. In
particular, this code now handles many more subtle cases correctly.
Writing it also revealed multiple inconsistencies in the Go spec
and/or standard implementations: golang/go#15708, golang/go#15721,
golang/go#15722.
The Go spec's grammar restricts method expressions to using either a named type or pointer to a named type:
cmd/compile erroneously accepts this Go source:
go/types erroneously accepts it too.
gccgo correctly rejects with the error message "method expression requires named type or pointer to named type"
/cc @griesemer @ianlancetaylor
The text was updated successfully, but these errors were encountered: