diff options
author | Russ Cox <rsc@golang.org> | 2012-02-22 00:29:37 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-02-22 00:29:37 -0500 |
commit | e29d3dfc49f7142d87ab71bd1d8d04e129972dd5 (patch) | |
tree | 9a0b1140decff3d3d98a9d3b31e881931cd7f2cf /test/named1.go | |
parent | 6c7daca23618b97e9f07b05ac8bf072a636fb616 (diff) | |
download | go-e29d3dfc49f7142d87ab71bd1d8d04e129972dd5.tar.gz go-e29d3dfc49f7142d87ab71bd1d8d04e129972dd5.zip |
gc: new, less strict bool rules
R=ken2
CC=golang-dev
https://golang.org/cl/5688064
Diffstat (limited to 'test/named1.go')
-rw-r--r-- | test/named1.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/named1.go b/test/named1.go index ca9da0fa31..5ff6930f7d 100644 --- a/test/named1.go +++ b/test/named1.go @@ -37,8 +37,8 @@ func main() { asBool(true) asBool(*&b) asBool(Bool(true)) - asBool(1 != 2) // ERROR "cannot use.*type bool.*as type Bool" - asBool(i < j) // ERROR "cannot use.*type bool.*as type Bool" + asBool(1 != 2) // ok now + asBool(i < j) // ok now _, b = m[2] // ERROR "cannot .* bool.*type Bool" |