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, types2: superfluous extra error message when type inference fails #50932

Open
griesemer opened this issue Jan 31, 2022 · 0 comments
Open
Assignees
Labels
NeedsFix
Milestone

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented Jan 31, 2022

package p

type T[A, B any] struct{}

func _() {
        type _ T[int]
}

produces two errors:

testdata/manual.go2:13:16: cannot infer B (testdata/manual.go2:10:11)
testdata/manual.go2:13:16: got 1 arguments but 2 type parameters

One would suffice.

@griesemer griesemer added the NeedsFix label Jan 31, 2022
@griesemer griesemer added this to the Go1.19 milestone Jan 31, 2022
@griesemer griesemer self-assigned this Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsFix
Projects
None yet
Development

No branches or pull requests

1 participant