New issue
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? Sign in to your account
spec: a possible inconsistency for promoted methods #34454
Comments
En, it looks the implementation is correct, it is consistent with reflection:
Maybe, a small adjustment is needed in spec?
A simpler example with names used in spec:
|
In the final example I think you are suggesting that CC @griesemer |
@ianlancetaylor Yes, I agree. It looks the current design views |
I think this is a dup of #15708. In particular, I think this is my first example here. |
I agree this is a dup of #15708, so close it. Maybe it is good to add a complement in the https://golang.org/ref/spec#Selectors section For a primary expression x (always assume it is addressable) that is not a package name, the selector expression .... |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
true
What did you do?
What did you expect to see?
All lines should compile.
What did you see instead?
One line fails to compile.
The text was updated successfully, but these errors were encountered: