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: unnecessary error after "cannot refer to unexported type" #22921

Open
mvdan opened this Issue Nov 29, 2017 · 2 comments

Comments

Projects
None yet
5 participants
@mvdan
Member

mvdan commented Nov 29, 2017

https://play.golang.org/p/ZwFSxT9JCu

Output on both 1.9.2 and tip:

tmp/sandbox627872070/main.go:6:8: cannot refer to unexported name bytes.buffer
tmp/sandbox627872070/main.go:6:8: undefined: bytes.buffer

Is the second error really necessary? It seems redundant to me, unless there is a good reason for it to be there.

/cc @mdempsky @griesemer

@bradfitz bradfitz added this to the Go1.11 milestone Nov 29, 2017

@griesemer griesemer added the NeedsFix label Nov 29, 2017

@griesemer

This comment has been minimized.

Contributor

griesemer commented Nov 29, 2017

There's no need for two errors.

@griesemer griesemer modified the milestones: Go1.11, Go1.12 Jun 27, 2018

@mvdan

This comment has been minimized.

Member

mvdan commented Nov 28, 2018

Doesn't seem important enough to keep around for 1.12. Also, should @mdempsky still be assigned?

@mvdan mvdan modified the milestones: Go1.12, Go1.13 Nov 28, 2018

@mdempsky mdempsky removed their assignment Nov 28, 2018

@griesemer griesemer self-assigned this Nov 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment