mirror of
https://github.com/golang/go
synced 2024-11-24 15:00:14 -07:00
gc: good syntax error for defer func() {} - missing final ()
R=ken2 CC=golang-dev https://golang.org/cl/855044
This commit is contained in:
parent
8abae596da
commit
2379fdec04
@ -49,4 +49,8 @@ static struct {
|
||||
|
||||
% loadsys package imports LFUNC LNAME '(' ')' '{' LVAR LNAME '[' ']' LNAME '{'
|
||||
"var declaration missing = before initial value",
|
||||
|
||||
% loadsys package imports LFUNC LNAME '(' ')' '{' LDEFER LNAME ';'
|
||||
"argument to go/defer must be function call",
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user