diff options
Diffstat (limited to 'vala/valaparser.vala')
-rw-r--r-- | vala/valaparser.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vala/valaparser.vala b/vala/valaparser.vala index f164d8534..25c0a5bcb 100644 --- a/vala/valaparser.vala +++ b/vala/valaparser.vala @@ -2068,7 +2068,8 @@ public class Vala.Parser : CodeVisitor { var initializer = new InitializerList (get_src (begin)); if (current () != TokenType.CLOSE_BRACE) { do { - initializer.append (parse_variable_initializer ()); + var init = parse_variable_initializer (); + initializer.append (init); } while (accept (TokenType.COMMA)); } expect (TokenType.CLOSE_BRACE); |