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: missing error for invalid use of ... in conversion #43124
Comments
Confirming that this bug also exists in |
Change https://golang.org/cl/277072 mentions this issue: |
…onversions This fixes the bug below for types2. Updates #43124. Change-Id: I3cc12bec7e1001283f959df769331ad93582bc95 Reviewed-on: https://go-review.googlesource.com/c/go/+/277072 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Change https://golang.org/cl/277352 mentions this issue: |
Change https://golang.org/cl/278012 mentions this issue: |
…onversions This fixes the bug below for types2. Updates #43124. Change-Id: Ic1962d41f321d8a08992d8529625bc133e526b0c Reviewed-on: https://go-review.googlesource.com/c/go/+/278012 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org>
go/types does not report an error for the invalid code below:
(https://play.golang.org/p/e_g7_Mauccq)
go/types accepts this code, but the compiler correctly reports the invalid use of
...
in a type conversion. This bug exists in masteras well as go1.15 (haven't checked older commits).
CC @griesemer
The text was updated successfully, but these errors were encountered: