Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go1.9
Does this issue reproduce with the latest release?
Yes
What did you do?
Use method to access array in struct.
https://play.golang.org/p/oJ_Uh9hGN0
What did you expect to see?
I expected the error in the stack trace to point to line 16.
What did you see instead?
Stack trace pointed to line 13 instead, the first invocation of Get()
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version)?go1.9
Does this issue reproduce with the latest release?
Yes
What did you do?
Use method to access array in struct.
https://play.golang.org/p/oJ_Uh9hGN0
What did you expect to see?
I expected the error in the stack trace to point to line 16.
What did you see instead?
Stack trace pointed to line 13 instead, the first invocation of Get()