From dfb074d49212b4d0ccbe27afc59355873a401bd1 Mon Sep 17 00:00:00 2001 From: Daniel Morsing Date: Wed, 15 Aug 2012 16:53:06 -0700 Subject: cmd/gc: Don't claim type assertion would help when it wont. Fixes issue 3465. R=golang-dev, rsc, remyoudompheng, iant CC=golang-dev http://codereview.appspot.com/6448097 Committer: Ian Lance Taylor --- test/interface/explicit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/interface') diff --git a/test/interface/explicit.go b/test/interface/explicit.go index d19480a68..7822b88d0 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" -- cgit v1.2.1