If you have a function that has f which is a Foo, and try to reference Foo.Bar instead
of f.Bar, you get the following error message:
prog.go:10: Foo.Bar undefined (type Foo has no method Bar)
[process exited with non-zero status]
I can see where this is coming from, because it's valid syntax if you're trying to get a
method, but I wonder if there could be a different error message when Foo has the field
Bar as in this case Foo is trying to be used as a value.
The text was updated successfully, but these errors were encountered: