]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Declare element types of arrays
authorJürg Billeter <j@bitron.ch>
Tue, 31 Mar 2009 15:30:22 +0000 (17:30 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 31 Mar 2009 15:30:22 +0000 (17:30 +0200)
gobject/valaccodebasemodule.vala

index f7803c910528bfe25b9a1f23f97bc56af5a9c004..4cbccb569edf3fbd6a79ccf3d0ab47b5e5691133 100644 (file)
@@ -1077,6 +1077,9 @@ internal class Vala.CCodeBaseModule : CCodeModule {
                } else if (type is StructValueType) {
                        var struct_type = (StructValueType) type;
                        generate_struct_declaration ((Struct) struct_type.type_symbol, decl_space);
+               } else if (type is ArrayType) {
+                       var array_type = (ArrayType) type;
+                       generate_type_declaration (array_type.element_type, decl_space);
                }
 
                foreach (DataType type_arg in type.get_type_arguments ()) {