]> Cypherpunks repositories - gostls13.git/commitdiff
Recognize gccgo error messages.
authorIan Lance Taylor <iant@golang.org>
Sat, 30 Jan 2010 06:38:39 +0000 (22:38 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 30 Jan 2010 06:38:39 +0000 (22:38 -0800)
bug228.go:11:25: error: invalid use of ‘...’
bug228.go:13:13: error: ‘...’ only permits one name
bug228.go:15:20: error: ‘...’ must be last parameter
bug228.go:17:7: error: expected type
bug228.go:19:8: error: expected type

R=rsc
CC=golang-dev
https://golang.org/cl/196077

test/fixedbugs/bug228.go

index 682152ed9191641434dd55281862ec55fed858bf..243d20ee7c3a9e1a5419ddf5e8994f7cdb8d20ae 100644 (file)
@@ -14,6 +14,6 @@ func h(x, y ...)              // ERROR "[.][.][.]"
 
 func i(x int, y ..., z float)  // ERROR "[.][.][.]"
 
-var x ...;             // ERROR "[.][.][.]|syntax"
+var x ...;             // ERROR "[.][.][.]|syntax|type"
 
-type T ...;            // ERROR "[.][.][.]|syntax"
+type T ...;            // ERROR "[.][.][.]|syntax|type"