From: Jürg Billeter Date: Tue, 31 Mar 2009 15:30:22 +0000 (+0200) Subject: Declare element types of arrays X-Git-Tag: 0.7.0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb877fe0f29c7f22affedde0ffb92bd9216c3237;p=thirdparty%2Fvala.git Declare element types of arrays --- diff --git a/gobject/valaccodebasemodule.vala b/gobject/valaccodebasemodule.vala index f7803c910..4cbccb569 100644 --- a/gobject/valaccodebasemodule.vala +++ b/gobject/valaccodebasemodule.vala @@ -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 ()) {