Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: confusing "cannot call non-function" error when a field is ambiguous #28268
What version of Go are you using (
My 2c: I think the fix here is to just suppress the errors at
Ambiguous selector errors are emitted at the selection site because they can be fixed there by further qualifying which (valid) selectable was intended. Whereas in this case, defining two fields/methods on the same type is invalid.