diff options
author | Luuk van Dijk <lvd@golang.org> | 2011-12-14 17:34:35 +0100 |
---|---|---|
committer | Luuk van Dijk <lvd@golang.org> | 2011-12-14 17:34:35 +0100 |
commit | e14d1d7e41eed928e045961195f160069f6abb2d (patch) | |
tree | 6cdf572768d81ba1cab906100fb42a647c513937 /test/named1.go | |
parent | d842acd57ed2633478cb46bbb4c18271ec62f36a (diff) | |
download | go-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/named1.go')
-rw-r--r-- | test/named1.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/named1.go b/test/named1.go index 64e492886e..499b77b961 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 ideal bool.*as type Bool" + asBool(1 != 2) // ERROR "cannot use.*type bool.*as type Bool" asBool(i < j) // ERROR "cannot use.*type bool.*as type Bool" _, b = m[2] // ERROR "cannot .* bool.*type Bool" |