Commit 371b77ad authored by Russ Cox's avatar Russ Cox

gc: error for nested functions, one semicolon problem

R=ken2
CC=golang-dev
https://golang.org/cl/1046042
parent 9995dec9
...@@ -52,5 +52,10 @@ static struct { ...@@ -52,5 +52,10 @@ static struct {
% loadsys package imports LFUNC LNAME '(' ')' '{' LDEFER LNAME ';' % loadsys package imports LFUNC LNAME '(' ')' '{' LDEFER LNAME ';'
"argument to go/defer must be function call", "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",
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment