]> Cypherpunks repositories - gostls13.git/commitdiff
gc: error for nested functions, one semicolon problem
authorRuss Cox <rsc@golang.org>
Mon, 3 May 2010 22:02:32 +0000 (15:02 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 3 May 2010 22:02:32 +0000 (15:02 -0700)
R=ken2
CC=golang-dev
https://golang.org/cl/1046042

src/cmd/gc/go.errors

index d5f23373860f48e666d3cc2f30bbc67c18db5ffc..be11c74164896ecd21217bae8daa0f51d5aa3d14 100644 (file)
@@ -52,5 +52,10 @@ static struct {
        
        % loadsys package imports LFUNC LNAME '(' ')' '{' LDEFER LNAME ';'
        "argument to go/defer must be function call",
-
+       
+       % loadsys package imports LVAR LNAME '=' LNAME '{' LNAME ';'
+       "need trailing comma before newline in composite literal",
+       
+       % loadsys package imports LFUNC LNAME '(' ')' '{' LFUNC LNAME
+       "nested func not allowed",
 };