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 func f(func(int) string) {} func g[P, Q any](P) Q { var q Q; return q } func _() { f(g) // ok f(g[int]) // ERROR: cannot infer Q var _ func(int) string = g // ok var _ func(int) string = g[int] // ok }
The type-checker currently cannot handle a partially instantiated generic function argument. Would be good to fix for 1.21 but not a release blocker.
The text was updated successfully, but these errors were encountered:
Change https://go.dev/cl/494116 mentions this issue: go/types, types2: permit partially instantiated functions as function arguments
go/types, types2: permit partially instantiated functions as function arguments
Sorry, something went wrong.
099f5a9
griesemer
No branches or pull requests
The type-checker currently cannot handle a partially instantiated generic function argument.
Would be good to fix for 1.21 but not a release blocker.
The text was updated successfully, but these errors were encountered: