]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Declare types used in implicit casts
authorJürg Billeter <j@bitron.ch>
Sun, 31 May 2009 17:15:09 +0000 (19:15 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 31 May 2009 17:16:54 +0000 (19:16 +0200)
Fixes bug 584163.

codegen/valaccodebasemodule.vala

index 06751cd3c15a254324ebc12048c2a9f05ec9b431..79e37e27155e3317a175ceb9298487b0c296d2e5 100644 (file)
@@ -3599,6 +3599,8 @@ internal class Vala.CCodeBaseModule : CCodeModule {
                        return cexpr;
                }
 
+               generate_type_declaration (target_type, source_declarations);
+
                var cl = target_type.data_type as Class;
                var iface = target_type.data_type as Interface;
                if (context.checking && (iface != null || (cl != null && !cl.is_compact))) {