]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Support inline allocated array parameters
authorJürg Billeter <j@bitron.ch>
Sat, 5 Jun 2010 07:43:33 +0000 (09:43 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 5 Jun 2010 08:12:10 +0000 (10:12 +0200)
vala/valaparser.vala

index 25b024286f31fe96a6193a09a48edccb33cf560b..742287edf35350459ff76388ce793216b1e66a9a 100644 (file)
@@ -3141,6 +3141,9 @@ public class Vala.Parser : CodeVisitor {
                        type = parse_type (true, false);
                }
                string id = parse_identifier ();
+
+               type = parse_inline_array_type (type);
+
                var param = new FormalParameter (id, type, get_src (begin));
                set_attributes (param, attrs);
                param.direction = direction;