]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: remove predecl. test functions from ordinary tests
authorRobert Griesemer <gri@golang.org>
Fri, 18 Mar 2022 00:35:11 +0000 (17:35 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 21 Mar 2022 19:10:57 +0000 (19:10 +0000)
commit29866aa2b6a6a48672a386d05b53779e768c13d6
treebb2a0c8a4c857c8b7eedacca5228cb642d6591c7
parent4dc5553930a7ead64e7cc62752907625642011d3
go/types, types2: remove predecl. test functions from ordinary tests

The type checker implements additional built-in functions (assert
and trace) that are useful for debugging. Only permit them in
manual tests (go test -run Manual), not for other tests where they
are not needed.

Change-Id: Idc7723d9e3f6b2c27769b34743561e9d0339565c
Reviewed-on: https://go-review.googlesource.com/c/go/+/393659
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/check_test.go
src/go/types/check_test.go