[vala] Fix symbol resolving for base types of structs
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Fix symbol resolving for base types of structs
- Date: Thu, 4 Feb 2010 16:22:15 +0000 (UTC)
commit e3a8480ff498d2fae7c90448bfc86e7ea50c2dff
Author: Jürg Billeter <j bitron ch>
Date: Thu Feb 4 17:20:08 2010 +0100
Fix symbol resolving for base types of structs
Fixes bug 607955.
vala/valasymbolresolver.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vala/valasymbolresolver.vala b/vala/valasymbolresolver.vala
index 86dfe35..9460484 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]