]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: add an additional shift test case
authorRobert Griesemer <gri@golang.org>
Thu, 16 Sep 2021 22:09:31 +0000 (15:09 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 16 Sep 2021 23:13:58 +0000 (23:13 +0000)
commite09dcc211a338450d3f680fe39abc13b79ddbb29
tree213cabe9149f4d734e9f9a7af0a3160b7302c1ed
parent5402b4376c0c51a31ea9c5ccf16b449a6ab3e79f
go/types, types2: add an additional shift test case

The extra test just confirms that the type-checker internally
agrees with the spec with the (otherwise invisible) type given
to an untyped constant in a specific shift expression.

For #48422.

Change-Id: I6d98045f90bd20b0cc0a96a147bec9701039cb07
Reviewed-on: https://go-review.googlesource.com/c/go/+/350410
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/types2/api_test.go
src/go/types/api_test.go