Commit 2379fdec authored by Russ Cox's avatar Russ Cox

gc: good syntax error for defer func() {} - missing final ()

R=ken2
CC=golang-dev
https://golang.org/cl/855044
parent 8abae596
......@@ -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",
};
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