]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Declare typeof() operand types
authorAli Sabil <ali.sabil@gmail.com>
Tue, 31 Mar 2009 16:02:48 +0000 (18:02 +0200)
committerAli Sabil <ali.sabil@gmail.com>
Tue, 31 Mar 2009 17:55:13 +0000 (19:55 +0200)
gobject/valaccodebasemodule.vala

index 8c777ab2c125492c6e8434557909f889687d201a..2539df791eda206f5ae8c12efe4690d82f86cef7 100644 (file)
@@ -1642,6 +1642,8 @@ internal class Vala.CCodeBaseModule : CCodeModule {
                        string type_id = type.get_type_id ();
                        if (type_id == null) {
                                type_id = "G_TYPE_INVALID";
+                       } else {
+                               generate_type_declaration (type, source_declarations);
                        }
                        return new CCodeIdentifier (type_id);
                }