]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix order dependency in type resolution with derived integer types
authorJürg Billeter <j@bitron.ch>
Thu, 14 Jan 2010 11:51:00 +0000 (12:51 +0100)
committerJürg Billeter <j@bitron.ch>
Thu, 14 Jan 2010 11:51:34 +0000 (12:51 +0100)
vala/valasymbolresolver.vala

index 48c0ef5fce1782adfede7ff851d624af1e52379f..86dfe3505715c3cf550afa53099149856aa2459f 100644 (file)
@@ -256,6 +256,11 @@ public class Vala.SymbolResolver : CodeVisitor {
        }
 
        DataType get_type_for_struct (Struct st, Struct base_struct) {
+               if (st.base_type != null) {
+                       // make sure that base type is resolved
+                       st.base_type.accept (this);
+               }
+
                if (base_struct.base_struct != null) {
                        return get_type_for_struct (st, base_struct.base_struct);
                }