diff options
author | Russ Cox <rsc@golang.org> | 2012-02-21 22:54:07 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-02-21 22:54:07 -0500 |
commit | a457fa500d35d352a76883706e82fd7e9f8e4bd7 (patch) | |
tree | e5e23701e0ee9400e4e68c438fbce369c4a1b504 /test/named1.go | |
parent | 5bcad92f07317dc81122f72d40433f314e336b7c (diff) | |
download | go-a457fa500d35d352a76883706e82fd7e9f8e4bd7.tar.gz go-a457fa500d35d352a76883706e82fd7e9f8e4bd7.zip |
gc: return of ideal bool
This is a manual undo of CL 5674098.
It does not implement the even less strict spec
that we just agreed on, but it gets us back where
we were at the last weekly.
R=ken2
CC=golang-dev
https://golang.org/cl/5683069
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 8be7292ca9..ca9da0fa31 100644 --- a/test/named1.go +++ b/test/named1.go @@ -26,7 +26,7 @@ type String string func main() { var ( - b Bool = Bool(true) + b Bool = true i, j int c = make(chan int) m = make(Map) @@ -34,7 +34,7 @@ func main() { asBool(b) asBool(!b) - asBool(true) // ERROR "cannot use.*type bool.*as type Bool" + asBool(true) asBool(*&b) asBool(Bool(true)) asBool(1 != 2) // ERROR "cannot use.*type bool.*as type Bool" |