]> Cypherpunks repositories - gostls13.git/commit
go/types: permit signed integer shift count
authorRobert Griesemer <gri@golang.org>
Thu, 24 Jan 2019 02:10:54 +0000 (18:10 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 11 Feb 2019 23:51:15 +0000 (23:51 +0000)
commit6fa1336531b0d1dac2b18123d74bcec4e0defdd9
tree20720b39e8d9a0e950819abb52cb4ab0b4b60966
parent710417bc92af19379101acbcd4e0f79dba38c891
go/types: permit signed integer shift count

Permit shifts by non-constant signed integer shift counts.
Share logic for constant shift counts in non-constant
shifts and improve error messages a little bit.

R=Go1.13

Updates #19113.

Change-Id: Ia01d83ca8aa60a6a3f4c49f026e0c46396f852be
Reviewed-on: https://go-review.googlesource.com/c/159317
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/expr.go
src/go/types/stdlib_test.go
src/go/types/testdata/decls1.src
src/go/types/testdata/expr1.src
src/go/types/testdata/shifts.src