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
diff --git a/test/named1.go b/test/named1.go
index 8be7292..ca9da0f 100644
--- a/test/named1.go
+++ b/test/named1.go
@@ -26,7 +26,7 @@
func main() {
var (
- b Bool = Bool(true)
+ b Bool = true
i, j int
c = make(chan int)
m = make(Map)
@@ -34,7 +34,7 @@
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"