mirror of
https://github.com/golang/go
synced 2024-11-22 00:44:39 -07:00
gc: error for nested functions, one semicolon problem
R=ken2 CC=golang-dev https://golang.org/cl/1046042
This commit is contained in:
parent
9995dec9da
commit
371b77ad20
@ -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",
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user