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 A[type T] int func f[type P]() func _() { _ = f[A] }
passes type-checking without error. But it should not be possible to instantiate f[A] with an uninstantiated A.
f[A]
A
Follow-up on #40038.
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/251557 mentions this issue: [dev.go2go] go/types: add missing instantiation checks for function type arguments
[dev.go2go] go/types: add missing instantiation checks for function type arguments
Sorry, something went wrong.
[dev.go2go] go/types: add missing instantiation checks for function t…
4461513
…ype arguments Fixes #40684. Change-Id: If642edbf321973729a8d5b36b4bf61e3fae7ee3a Reviewed-on: https://go-review.googlesource.com/c/go/+/251557 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
Fixed on dev.go2go branch.
No branches or pull requests
passes type-checking without error. But it should not be possible to instantiate
f[A]
with an uninstantiatedA
.Follow-up on #40038.
The text was updated successfully, but these errors were encountered: