From: Jürg Billeter Date: Thu, 4 Feb 2010 16:20:08 +0000 (+0100) Subject: Fix symbol resolving for base types of structs X-Git-Tag: 0.7.10~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3a8480ff498d2fae7c90448bfc86e7ea50c2dff;p=thirdparty%2Fvala.git Fix symbol resolving for base types of structs Fixes bug 607955. --- diff --git a/vala/valasymbolresolver.vala b/vala/valasymbolresolver.vala index 86dfe3505..946048455 100644 --- a/vala/valasymbolresolver.vala +++ b/vala/valasymbolresolver.vala @@ -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) {