]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types2: report error for invalid type expression
authorRobert Griesemer <gri@golang.org>
Fri, 11 Dec 2020 02:07:09 +0000 (18:07 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 14 Dec 2020 21:29:46 +0000 (21:29 +0000)
commit8fe8e29c9f94d569586a6d8ae6798f82bb5b385b
tree58d6b0fda7db7d9e179db731723ac708889d61a5
parentf8930a241301b9922beef925e4ca685f8c3e95a7
[dev.typeparams] cmd/compile/internal/types2: report error for invalid type expression

This bug was introduced by the change from go/ast to syntax which
represents pointer types as (unary) operations rather than dedicated
StarExpr nodes. Accordingly, this bug does not exist for go/types.
It's still ok to backport the test.

Fixes #43125.

Change-Id: Ic55d913f8afc92862856e1eb7c2861d07fc56cfb
Reviewed-on: https://go-review.googlesource.com/c/go/+/278013
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>
src/cmd/compile/internal/types2/fixedbugs/issue43125.src [new file with mode: 0644]
src/cmd/compile/internal/types2/typexpr.go