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
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@rsc
Copy link
Contributor

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 The path to resolution is known, but the work has not been done. label Jan 6, 2020
@rsc rsc added this to the Go1.15 milestone Jan 6, 2020
@cuonglm
Copy link
Member

cuonglm commented Jan 6, 2020

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

@ALTree
Copy link
Member

ALTree commented Jan 6, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

4 participants