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: wrong column position for "missing return" error #19576

Closed
mdempsky opened this issue Mar 16, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@mdempsky
Copy link
Member

commented Mar 16, 2017

$ cat t.go
package p

func f() int {}
$ go tool compile t.go
t.go:3:0: missing return at end of function

The error should be at column position 15 (the rbrace).

(Fix forthcoming, just reserving an issue number for fixedbugs.)

@gopherbot

This comment has been minimized.

Copy link

commented Mar 16, 2017

CL https://golang.org/cl/38291 mentions this issue.

@gopherbot gopherbot closed this in f37ee0f Mar 16, 2017

@golang golang locked and limited conversation to collaborators Mar 16, 2018

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