aboutsummaryrefslogtreecommitdiff
path: root/test/ddd1.go
diff options
context:
space:
mode:
authorLuuk van Dijk <lvd@golang.org>2011-12-14 17:34:35 +0100
committerLuuk van Dijk <lvd@golang.org>2011-12-14 17:34:35 +0100
commite14d1d7e41eed928e045961195f160069f6abb2d (patch)
tree6cdf572768d81ba1cab906100fb42a647c513937 /test/ddd1.go
parentd842acd57ed2633478cb46bbb4c18271ec62f36a (diff)
downloadgo-e14d1d7e41eed928e045961195f160069f6abb2d.tar.gz
go-e14d1d7e41eed928e045961195f160069f6abb2d.zip
gc: use inferred type rather than original one when reporting non-assignability.
Fixes #2451 R=rsc, bradfitz CC=golang-dev https://golang.org/cl/5372105
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 54ccc23407..6d84248e5e 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 ideal string. as type int|incompatible"
+ _ = sum("hello") // ERROR ".hello. .type string. as type int|incompatible"
_ = sum([]int{1}) // ERROR "\[\]int literal.*as type int|incompatible"
)