diff options
author | Russ Cox <rsc@golang.org> | 2012-02-18 21:07:08 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-02-18 21:07:08 -0500 |
commit | 126d475a4311c5c34f380a11941dbeeac39145fd (patch) | |
tree | aae99136bd4256166cec59f4e8a4d6bd738b5255 /test/named1.go | |
parent | ad17a9c0a9e758a584f3d5992bc75fbde9512122 (diff) | |
download | go-126d475a4311c5c34f380a11941dbeeac39145fd.tar.gz go-126d475a4311c5c34f380a11941dbeeac39145fd.zip |
gc: drop ideal bool
R=golang-dev, ken2
CC=golang-dev
https://golang.org/cl/5674098
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..8be7292ca9 100644 --- a/test/named1.go +++ b/test/named1.go @@ -26,7 +26,7 @@ type String string func main() { var ( - b Bool = true + b Bool = Bool(true) i, j int c = make(chan int) m = make(Map) @@ -34,7 +34,7 @@ func main() { asBool(b) asBool(!b) - asBool(true) + asBool(true) // ERROR "cannot use.*type bool.*as type Bool" asBool(*&b) asBool(Bool(true)) asBool(1 != 2) // ERROR "cannot use.*type bool.*as type Bool" |