]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] go/types: untyped shift counts must fit into uint
authorRob Findley <rfindley@google.com>
Thu, 11 Feb 2021 15:17:39 +0000 (10:17 -0500)
committerRobert Findley <rfindley@google.com>
Sat, 13 Feb 2021 00:39:59 +0000 (00:39 +0000)
commita7e9b4b94804a1fbefc0c012ec510f4ee0837ffa
tree023f921e5aa81d6394b128b6dc9ddfcad72a91f5
parent060fa49bd23d758a9062f4cb50e65960ec9662f1
[dev.regabi] go/types: untyped shift counts must fit into uint

This is a port of CL 283872 to go/types. It differs from that CL only in
added error codes.

For #43697

Change-Id: I62277834cef1c0359bcf2c6ee4388731babbc855
Reviewed-on: https://go-review.googlesource.com/c/go/+/291316
Trust: Robert Findley <rfindley@google.com>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/expr.go
src/go/types/testdata/shifts.src