]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix symbol resolving for base types of structs
authorJürg Billeter <j@bitron.ch>
Thu, 4 Feb 2010 16:20:08 +0000 (17:20 +0100)
committerJürg Billeter <j@bitron.ch>
Thu, 4 Feb 2010 16:20:32 +0000 (17:20 +0100)
Fixes bug 607955.

vala/valasymbolresolver.vala

index 86dfe3505715c3cf550afa53099149856aa2459f..94604845576826a4b10fbc6d15fb73ecd35825a7 100644 (file)
@@ -258,7 +258,13 @@ 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
+
+                       var old_scope = current_scope;
+                       current_scope = st.scope;
+
                        st.base_type.accept (this);
+
+                       current_scope = old_scope;
                }
 
                if (base_struct.base_struct != null) {