]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: disallow multiple blank type parameters
authorRobert Griesemer <gri@golang.org>
Thu, 6 Jan 2022 22:10:45 +0000 (14:10 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 7 Jan 2022 00:02:57 +0000 (00:02 +0000)
commitc295137ad8e5e947205d060a26164cb71952c1bb
treed5fe6f4e2c564162076acc3784b0bc7ab8bba8d3
parent042548b1fdba21e351368e9f3ecd93059d09083f
go/types, types2: disallow multiple blank type parameters

Work-around for #50481: report an error for multiple
blank type parameters. It's always possible to use
non-blank names in those cases.

We expect to lift this restriction for 1.19.

For #50481.

Change-Id: Ifdd2d91340aac1da3387f7d80d46e44f5997c2a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/376058
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Dan Scales <danscales@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/decl.go
src/go/types/decl.go
test/typeparam/issue50481.go [new file with mode: 0644]