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 duplicate error #36410

Closed
rsc opened this issue Jan 6, 2020 · 2 comments
Closed

cmd/compile: unnecessary duplicate error #36410

rsc opened this issue Jan 6, 2020 · 2 comments
Labels
Milestone

Comments

@rsc
Copy link
Contributor

@rsc rsc commented Jan 6, 2020

$ cat /tmp/x.go
package p
import "fmt"
var _ = fmt.printf
$ go tool compile /tmp/x.go
/tmp/x.go:3:9: cannot refer to unexported name fmt.printf
/tmp/x.go:3:9: undefined: fmt.printf
$ 

The first error is great. The second error should be omitted.

/cc @griesemer

@rsc rsc added the NeedsFix label Jan 6, 2020
@rsc rsc added this to the Go1.15 milestone Jan 6, 2020
@cuonglm

This comment has been minimized.

Copy link
Contributor

@cuonglm cuonglm commented Jan 6, 2020

go/types reports only one, but different error message printf not declared by package fmt

@ALTree

This comment has been minimized.

Copy link
Member

@ALTree ALTree commented Jan 6, 2020

This is a dup of #22921, which is already assigned to gri. Closing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.