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

go/types: not enough arguments error message should be easier to skim #26249

Open
rsc opened this issue Jul 6, 2018 · 1 comment
Open

go/types: not enough arguments error message should be easier to skim #26249

rsc opened this issue Jul 6, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@rsc
Copy link
Contributor

@rsc rsc commented Jul 6, 2018

Another difference between gc and go/types where I believe gc ends up more readable:

go test -short
# regexp [regexp.test]
./regexp.go:197:20: not enough arguments in call to progMachine
	have (*syntax.Prog, *onePassProg)
	want (*Regexp, *syntax.Prog, *onePassProg)
# regexp
./regexp.go:197:21: cannot use prog (variable of type *regexp/syntax.Prog) as *Regexp value in argument to progMachine
./regexp.go:197:27: cannot use onepass (variable of type *onePassProg) as *regexp/syntax.Prog value in argument to progMachine
./regexp.go:197:34: too few arguments in call to progMachine
vet: typecheck failures
@rsc rsc added this to the Go1.12 milestone Jul 6, 2018
@griesemer griesemer self-assigned this Dec 6, 2018
@griesemer
Copy link
Contributor

@griesemer griesemer commented Dec 6, 2018

Slightly more involved than what we want to do this late in the cycle. Moving to 1.13.

@griesemer griesemer removed this from the Go1.12 milestone Dec 6, 2018
@griesemer griesemer added this to the Go1.13 milestone Dec 6, 2018
@griesemer griesemer removed this from the Go1.13 milestone May 6, 2019
@griesemer griesemer added this to the Go1.14 milestone May 6, 2019
@rsc rsc removed this from the Go1.14 milestone Oct 9, 2019
@rsc rsc added this to the Backlog milestone Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants