]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix type declaration for cast expressions
authorJürg Billeter <j@bitron.ch>
Sun, 11 Oct 2009 09:42:52 +0000 (11:42 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 11 Oct 2009 09:42:52 +0000 (11:42 +0200)
codegen/valaccodebasemodule.vala

index ef72af0d600f8ca3e3c00bf9bf2390c390a8bea7..85db96403affc1f86977f7c9612e682fa4bee498 100644 (file)
@@ -3954,6 +3954,8 @@ internal class Vala.CCodeBaseModule : CCodeModule {
                        return;
                }
 
+               generate_type_declaration (expr.type_reference, source_declarations);
+
                var cl = expr.type_reference.data_type as Class;
                var iface = expr.type_reference.data_type as Interface;
                if (context.profile == Profile.GOBJECT && (iface != null || (cl != null && !cl.is_compact))) {