]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: use go/types/testdata/spec tests
authorRobert Griesemer <gri@golang.org>
Thu, 18 Aug 2022 01:30:21 +0000 (18:30 -0700)
committerRobert Griesemer <gri@google.com>
Thu, 18 Aug 2022 21:54:52 +0000 (21:54 +0000)
commit0a4a57de4d0764a4291e4d8654e88b44e65d8059
tree049ad8f5aa95a6eb6d4059fb7310aed3ed1c1143
parent17211c355f015862b635f8cbd48ffc65a1081b92
cmd/compile/internal/types2: use go/types/testdata/spec tests

Since the spec tests are now identical between the two type checkers,
remove the local copy of the spec tests and (for now) use the tests
in go/types/testdata/spec instead. Eventually we may decide to move
all tests out of the type checker directories and place them in a
shared space (e.g. internal/types/testdata).

For #54511.

Change-Id: Ibc62230553a5ff215160dcc97696b333ae9cf685
Reviewed-on: https://go-review.googlesource.com/c/go/+/424676
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/check_test.go
src/cmd/compile/internal/types2/testdata/spec/assignability.go [deleted file]
src/cmd/compile/internal/types2/testdata/spec/comparisons.go [deleted file]
src/cmd/compile/internal/types2/testdata/spec/conversions.go [deleted file]