aboutsummaryrefslogtreecommitdiff
path: root/test/ddd1.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/ddd1.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/ddd1.go')
-rw-r--r--test/ddd1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ddd1.go b/test/ddd1.go
index 6d84248e5e..54ccc23407 100644
--- a/test/ddd1.go
+++ b/test/ddd1.go
@@ -15,7 +15,7 @@ var (
_ = sum()
_ = sum(1.0, 2.0)
_ = sum(1.5) // ERROR "integer"
- _ = sum("hello") // ERROR ".hello. .type string. as type int|incompatible"
+ _ = sum("hello") // ERROR ".hello. .type ideal string. as type int|incompatible"
_ = sum([]int{1}) // ERROR "\[\]int literal.*as type int|incompatible"
)