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

Closed
griesemer opened this issue Jan 31, 2022 · 1 comment
Closed
Assignees
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@griesemer
Copy link
Contributor

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 The path to resolution is known, but the work has not been done. label Jan 31, 2022
@griesemer griesemer added this to the Go1.19 milestone Jan 31, 2022
@griesemer griesemer self-assigned this Jan 31, 2022
@griesemer
Copy link
Contributor Author

Type type-inference has been removed. We now get the expected single error (playground). Closing.

@golang golang locked and limited conversation to collaborators Jun 23, 2023
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
Development

No branches or pull requests

2 participants