]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types2: add Config.AllowTypeLists to control...
authorRobert Griesemer <gri@golang.org>
Thu, 3 Jun 2021 00:50:47 +0000 (17:50 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 3 Jun 2021 03:55:44 +0000 (03:55 +0000)
commit95c618e99a3f733543fd36ef19e833d04acc8710
tree2c372a61f2aa460769c1b7bdac644e29aa4433dc
parent10d6b36ca3f8d48a667742eee791dacbcfc888cd
[dev.typeparams] cmd/compile/internal/types2: add Config.AllowTypeLists to control type list handling

Eventually the flag should not be set anymore, but we set it in the
compiler until all tests have been converted.

Also, convert some more types2 tests to use the type set notation.

Change-Id: I616599a3473451ab75d67272016b2bd3de6835af
Reviewed-on: https://go-review.googlesource.com/c/go/+/324571
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/noder/irgen.go
src/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/api_test.go
src/cmd/compile/internal/types2/interface.go
src/cmd/compile/internal/types2/testdata/examples/constraints.go2
src/cmd/compile/internal/types2/typestring_test.go