]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Genie: Handle casts involving arrays/lists/dicts correctly
authorJamie McCracken <jamie.mccrack@gmail.com>
Mon, 12 Oct 2009 20:17:46 +0000 (16:17 -0400)
committerJamie McCracken <jamie.mccrack@gmail.com>
Mon, 12 Oct 2009 20:33:23 +0000 (16:33 -0400)
vala/valagenieparser.vala

index a6a104715cf12ff898873b69aa5194a1a63ae928..aa94c12409145970c215e48a6f74df6b3c8b24c8 100644 (file)
@@ -1154,6 +1154,9 @@ public class Vala.Genie.Parser : CodeVisitor {
                        case TokenType.VOID:
                        case TokenType.DYNAMIC:
                        case TokenType.IDENTIFIER:
+                       case TokenType.ARRAY:
+                       case TokenType.LIST:
+                       case TokenType.DICT:
                                var type = parse_type ();
                                if (accept (TokenType.CLOSE_PARENS)) {
                                        // check follower to decide whether to create cast expression