diff options
| author | Daniel Morsing <daniel.morsing@gmail.com> | 2012-08-15 16:53:06 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2012-08-15 16:53:06 -0700 |
| commit | b04c890a89e00f52c11ccccf4c76db389ef57d16 (patch) | |
| tree | 1a590a019afae7e13f7f1dd5b007ab58a5799bb0 /test/interface/explicit.go | |
| parent | d624f0c92281f73879b573213acf736170a68145 (diff) | |
| download | go-b04c890a89e00f52c11ccccf4c76db389ef57d16.tar.xz | |
cmd/gc: Don't claim type assertion would help when it wont.
Fixes #3465.
R=golang-dev, rsc, remyoudompheng, iant
CC=golang-dev
https://golang.org/cl/6448097
Diffstat (limited to 'test/interface/explicit.go')
| -rw-r--r-- | test/interface/explicit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/interface/explicit.go b/test/interface/explicit.go index d19480a685..7822b88d08 100644 --- a/test/interface/explicit.go +++ b/test/interface/explicit.go @@ -40,7 +40,7 @@ func main() { // because i has an extra method // that t does not, so i cannot contain a t. i = t // ERROR "incompatible|missing M method" - t = i // ERROR "incompatible|need type assertion" + t = i // ERROR "incompatible|assignment$" i = i2 // ok i2 = i // ERROR "incompatible|missing N method" |
