1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:14:42 -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:
Russ Cox 2010-04-04 23:27:26 -07:00
parent 8abae596da
commit 2379fdec04

View File

@ -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",
};