We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package p type S[A, B any] struct {} func _[A any](s S /* ERROR cannot infer B */ /* ERROR got 1 arguments but 2 type parameters */ [A]) {}
produces two error messages:
filename.go:5:17: cannot infer B (filename:go:3:11) filename.go:5:17: got 1 arguments but 2 type parameters
There's no need to report the 2nd error.
Follow-up on #49541.
The text was updated successfully, but these errors were encountered:
Note that with type-type inference disabled this issue becomes obsolete. Leaving it open for 1.19, depending on what we do.
Sorry, something went wrong.
Type type-inference has been removed and this now reports one error as expected. Closing.
.gitattributes: prevent all magic line ending changes
b7a2b1e
Fixes #9281 Change-Id: Id060e9cbad086c994ec74b240f5c61e971e5690b Reviewed-on: https://go-review.googlesource.com/1490 Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
griesemer
findleyr
No branches or pull requests
produces two error messages:
There's no need to report the 2nd error.
Follow-up on #49541.
The text was updated successfully, but these errors were encountered: