Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
prog.go:7: T.m2 undefined (type T has no method m2)
prog.go:7: invalid expression unsafe.Sizeof(T.m2)
[process exited with non-zero status]
But switching m1 and m2 works:
In general, ordering declarations differently won't work:
These are clearly pathological cases but point out some limitations of gc's type checker.
gccgo handles these cases w/o problem.
go/types has the same problem.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.