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

mvdan opened this issue Nov 29, 2017 · 3 comments

cmd/compile: unnecessary error after "cannot refer to unexported type" #22921

mvdan opened this issue Nov 29, 2017 · 3 comments


Copy link

@mvdan mvdan commented Nov 29, 2017

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
Copy link

@griesemer griesemer commented Nov 29, 2017

There's no need for two errors.

@griesemer griesemer modified the milestones: Go1.11, Go1.12 Jun 27, 2018
Copy link
Member Author

@mvdan 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
@griesemer griesemer modified the milestones: Go1.13, Go1.14 May 6, 2019
@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
Copy link

@ALTree ALTree commented Jan 6, 2020

Note: #36410 was recently opened reporting the same issue, and it was milestoned as 1.15.

@griesemer griesemer modified the milestones: Backlog, Go1.15 Jan 6, 2020
@ianlancetaylor ianlancetaylor modified the milestones: Go1.15, Backlog May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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