cmd/compile: better error messages for use of ... with type parameters (dev.typeparams branch) #43680
Comments
Change https://golang.org/cl/283475 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Jan 14, 2021
…r invalid ... use This partially addresses the issue below: In many (all) cases we want to handle invalid ... use in the parser as a syntax error; but this ensures that we get a decent error if we get here anyway. Updates #43680. Change-Id: I93af43a5f5741d8bc76e7a13c0db75e6edf43111 Reviewed-on: https://go-review.googlesource.com/c/go/+/283475 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For
main.go
:The compiler reports
with
go tool compile -G main.go
.The error messages should be better.
...
should not be permitted for type parameters during parsing.The text was updated successfully, but these errors were encountered: