Skip to content
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

cmd/compile: error line:col information points to wrong function parameter #28968

Closed
yansal opened this issue Nov 27, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@yansal
Copy link
Contributor

commented Nov 27, 2018

Does this issue reproduce with the latest release?

Yes

What did you do?

https://play.golang.org/p/6PRJL3-x2lO

What did you expect to see?

An error like prog.go:8:2: cannot use bad (type func() func()) as type func() in argument to f

What did you see instead?

prog.go:7:4: cannot use bad (type func() func()) as type func() in argument to f

The compiler error line:col information points to the first argument, but the actual error is the second.

@ALTree

This comment has been minimized.

Copy link
Member

commented Nov 27, 2018

Thanks for the report.

This is essentially a dup of #15459.

@ALTree

This comment has been minimized.

Copy link
Member

commented Nov 28, 2018

(closing as a dup).

@ALTree ALTree closed this Nov 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.