aboutsummaryrefslogtreecommitdiff
path: root/test/named1.go
diff options
context:
space:
mode:
authorLuuk van Dijk <lvd@golang.org>2011-10-31 18:09:40 +0100
committerLuuk van Dijk <lvd@golang.org>2011-10-31 18:09:40 +0100
commit50110c9f83ee0cfa2909ca78a67f14dcca2e83c1 (patch)
tree51c419b81bf1b7d8f398f4ffc1ee320342290946 /test/named1.go
parent584233608941dc579d8a4b90f463a8653f38de3a (diff)
downloadgo-50110c9f83ee0cfa2909ca78a67f14dcca2e83c1.tar.gz
go-50110c9f83ee0cfa2909ca78a67f14dcca2e83c1.zip
gc: clean up printing.
Got rid of all the magic mystery globals. Now for %N, %T, and %S, the flags +,- and # set a sticky debug, sym and export mode, only visible in the new fmt.c. Default is error mode. Handle h and l flags consistently with the least side effects, so we can now change things without worrying about unrelated things breaking. fixes #2361 R=rsc CC=golang-dev https://golang.org/cl/5316043
Diffstat (limited to 'test/named1.go')
-rw-r--r--test/named1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/named1.go b/test/named1.go
index 7e7aab9c1d..33d07a71c2 100644
--- a/test/named1.go
+++ b/test/named1.go
@@ -37,7 +37,7 @@ func main() {
asBool(true)
asBool(*&b)
asBool(Bool(true))
- asBool(1 != 2) // ERROR "cannot use.*type bool.*as type Bool"
+ asBool(1 != 2) // ERROR "cannot use.*type ideal bool.*as type Bool"
asBool(i < j) // ERROR "cannot use.*type bool.*as type Bool"
_, b = m[2] // ERROR "cannot .* bool.*type Bool"