]> Cypherpunks repositories - gostls13.git/commitdiff
Recognize gccgo error messages:
authorIan Lance Taylor <iant@golang.org>
Thu, 15 Jan 2009 18:15:23 +0000 (10:15 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 15 Jan 2009 18:15:23 +0000 (10:15 -0800)
interface5.go:15:5: error: incompatible types in assignment
interface5.go:16:5: error: incompatible types in assignment

(Yes, these could be better).

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=22821
CL=22826

test/interface5.go

index a7d79a17bcc610a28b78f18d28b9cab82f9467f1..2e273ddddb5a614222129dd3e289d3bdf3c3ecb3 100644 (file)
@@ -16,6 +16,6 @@ func main() {
        // neither of these can work,
        // because i has an extra method
        // that t does not, so i cannot contain a t.
-       i = t;  // ERROR "missing"
-       t = i;  // ERROR "missing"
+       i = t;  // ERROR "missing|incompatible"
+       t = i;  // ERROR "missing|incompatible"
 }