]> Cypherpunks repositories - gostls13.git/commit
go/types: fix internal inInteger operand predicate
authorRobert Griesemer <gri@golang.org>
Fri, 10 Jul 2015 22:11:06 +0000 (16:11 -0600)
committerAlan Donovan <adonovan@google.com>
Wed, 15 Jul 2015 02:25:47 +0000 (02:25 +0000)
commite7a10a9614a33091d0fa60a570cfb79e7573246b
tree10aa01ba9f75e5ef4617913da577c24e4f4493d0
parent8b6527b70ea0408f0903a51d88c7245ec366f1f5
go/types: fix internal inInteger operand predicate

When testing if a value is an integer, if the value is a constant,
don't ignore the type if it has one.

Fixes #11594.

Change-Id: I2ff387e4f9e8ab7cae35c4838350e0a1fce2e625
Reviewed-on: https://go-review.googlesource.com/12045
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/operand.go
src/go/types/testdata/decls0.src
src/go/types/testdata/shifts.src