]> Cypherpunks repositories - gostls13.git/commitdiff
Recognize gccgo error messages.
authorIan Lance Taylor <iant@golang.org>
Mon, 26 Oct 2009 23:06:46 +0000 (16:06 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 26 Oct 2009 23:06:46 +0000 (16:06 -0700)
rename1.go:10:8: error: expected type
rename1.go:11:10: error: expected function
rename1.go:13:8: error: incompatible types in binary expression

R=rsc
http://go/go-review/1015013

test/rename1.go

index eb98e7accf3c9a39cfcc19b10b1f921ee7e10b6d..2224773e9f5fdfea462ccb3b06bdacec29cac659 100644 (file)
@@ -7,10 +7,10 @@
 package main
 
 func main() {
-       var n byte;     // ERROR "not a type"
-       var y = float(0);       // ERROR "cannot call"
+       var n byte;     // ERROR "not a type|expected type"
+       var y = float(0);       // ERROR "cannot call|expected function"
        const (
-               a = 1+iota;     // ERROR "string"
+               a = 1+iota;     // ERROR "string|incompatible types"
        )
 
 }