Skip to content

cmd/compile: reports wrong line number when calling a method in multiple lines #22083

@yhuang0

Description

@yhuang0

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions