summaryrefslogtreecommitdiff
path: root/test/named1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-02-18 21:07:08 -0500
committerRuss Cox <rsc@golang.org>2012-02-18 21:07:08 -0500
commite26c8a1ce98dd9d924496b224a9d1d9edea538a2 (patch)
treee6d0d1f14e56bddd18718a0619e9e69d5a6b6cdf /test/named1.go
parentebeb51cfcbdb6b283c1894fd0b9da75f2b5690c9 (diff)
downloadgo-e26c8a1ce98dd9d924496b224a9d1d9edea538a2.tar.gz
gc: drop ideal bool
R=golang-dev, ken2 CC=golang-dev http://codereview.appspot.com/5674098
Diffstat (limited to 'test/named1.go')
-rw-r--r--test/named1.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/named1.go b/test/named1.go
index ca9da0fa3..8be7292ca 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"