an = before an { is also always required when the declared variable is not a function; adding because of planned array initializers

This commit is contained in:
Wolfgang Bumiller 2013-04-26 10:31:38 +02:00
parent 1077eb2061
commit b3e9ef3ad9

View file

@ -5623,7 +5623,7 @@ skipvar:
}
}
if (parser->tok != '{') {
if (parser->tok != '{' || var->expression.vtype != TYPE_FUNCTION) {
if (parser->tok != '=') {
parseerror(parser, "missing semicolon or initializer, got: `%s`", parser_tokval(parser));
break;