]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: consolidate testdata/fixedbugs test files
authorRobert Griesemer <gri@golang.org>
Wed, 31 Aug 2022 23:56:17 +0000 (16:56 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 2 Sep 2022 02:15:01 +0000 (02:15 +0000)
commit9649a4119c7954618ea891e71c09cb51940f39a7
tree34fad086851ae9832e0c4dc80f15bdf9dc7f6c9a
parent1be8fcdcdce01ca7cffb1fd90c1cd706c3ea4ee4
go/types, types2: consolidate testdata/fixedbugs test files

Use the go/types version of testdata/fixedbugs tests where diffs
are only in the error positions (the types2 test harness allows
for some position tolerance). Consolidate files where there are
other minor differences.

Add files to respective directories if they only existed for
one of the type checkers.

Move types2-only test issue47996.go out of testdata/fixedbugs
into testdata. Making it work for both type checkers requires
some more work.

With this CL, the testdata/fixedbugs files are identical between
the two type checkers.

For #54511.

Change-Id: I0d67f0db75ad1743c62da9181a6d0032c8bdb728
Reviewed-on: https://go-review.googlesource.com/c/go/+/427236
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
40 files changed:
src/cmd/compile/internal/types2/check_test.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue20583.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue26390.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue39634.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue39693.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue39711.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue40038.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue40056.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue40684.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue42987.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue43125.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue45635.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue45920.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue45985.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue46275.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue46403.go [new file with mode: 0644]
src/cmd/compile/internal/types2/testdata/fixedbugs/issue47115.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue47411.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue48136.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue48827.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue49112.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue49179.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue49602.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue50372.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue50427.go [new file with mode: 0644]
src/cmd/compile/internal/types2/testdata/fixedbugs/issue51229.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue51257.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue51339.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue51360.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue51376.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue51472.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue51593.go
src/cmd/compile/internal/types2/testdata/issue47996.go [moved from src/cmd/compile/internal/types2/testdata/fixedbugs/issue47996.go with 100% similarity]
src/go/types/testdata/fixedbugs/issue39693.go
src/go/types/testdata/fixedbugs/issue46275.go
src/go/types/testdata/fixedbugs/issue46583.go [new file with mode: 0644]
src/go/types/testdata/fixedbugs/issue48695.go
src/go/types/testdata/fixedbugs/issue49296.go
src/go/types/testdata/fixedbugs/issue50372.go [new file with mode: 0644]
src/go/types/testdata/fixedbugs/issue52698.go