]> Cypherpunks.ru repositories - gostls13.git/commit
test: add more tests for const decls with ommitted RHS expressions
authorRobert Griesemer <gri@golang.org>
Tue, 28 Jun 2022 17:51:53 +0000 (10:51 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 28 Jun 2022 18:11:31 +0000 (18:11 +0000)
commitd5bf9604aa597d23085435701f5f8d1584596dbd
treeb05d00d22915731c14d9a639a05c0290314d9af3
parent533082d1a08fd2c3b0c7ee43f3cf5c29f4e12d84
test: add more tests for const decls with ommitted RHS expressions

Add analogous tests to go/types and types2 test suites.
Make sure "assert" built-in is available in type-checker
tests.

For #49157.
For #53585.

Change-Id: I092901ecb43eb4833c09bd8f5e38efbe0285babe
Reviewed-on: https://go-review.googlesource.com/c/go/+/414795
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/check_test.go
src/cmd/compile/internal/types2/testdata/check/constdecl.go
src/go/types/check_test.go
src/go/types/testdata/check/constdecl.go
test/const8.go [new file with mode: 0644]