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
Closed

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

yansal opened this issue Nov 27, 2018 · 2 comments

Comments

@yansal
Copy link
Contributor

@yansal yansal 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

@ALTree ALTree commented Nov 27, 2018

Thanks for the report.

This is essentially a dup of #15459.

@ALTree

This comment has been minimized.

Copy link
Member

@ALTree ALTree commented Nov 28, 2018

(closing as a dup).

@ALTree ALTree closed this Nov 28, 2018
@golang golang locked and limited conversation to collaborators Nov 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.