-
Notifications
You must be signed in to change notification settings - Fork 17.4k
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: type inference fails when a prefix of type arguments is provided #44799
Comments
The problem is that we don't continue with normal inference if constraint type inference fails. I suspect this bug that was introduced when we extracted logic out of I'll try to fix. |
The order needs to be:
|
Change https://golang.org/cl/299829 mentions this issue: |
Change https://golang.org/cl/308372 mentions this issue: |
Change https://golang.org/cl/308973 mentions this issue: |
Follow-up on https://golang.org/cl/308372. For #44799. Change-Id: I27d149241d465ee31e9c21d5f0935f31efcb5b60 Reviewed-on: https://go-review.googlesource.com/c/go/+/308973 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Given program
Type inference fails for the commented out statements. It should work.
cc: @findleyr
The text was updated successfully, but these errors were encountered: