Shouldn't require a 'local' keyword for local fieldpointers

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-10 15:43:43 +01:00
parent 42b9848375
commit 8687aa9a3e

View file

@ -1597,7 +1597,7 @@ onerr:
static bool parse_statement(parser_t *parser, ast_block *block, ast_expression **out)
{
if (parser->tok == TOKEN_TYPENAME)
if (parser->tok == TOKEN_TYPENAME || parser->tok == '.')
{
/* local variable */
if (!block) {