2008-01-12 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: restore current_return_type
after processing lambda expressions, fixes bug 501586
svn path=/trunk/; revision=833
2008-01-12 Jürg Billeter <j@bitron.ch>
+ * vala/valasemanticanalyzer.vala: restore current_return_type
+ after processing lambda expressions, fixes bug 501586
+
+2008-01-12 Jürg Billeter <j@bitron.ch>
+
* vala/valasemanticanalyzer.vala: fix null dereference when trying to
access members of a delegate
}
}
+ var old_symbol = current_symbol;
+ var old_return_type = current_return_type;
current_symbol = m;
current_return_type = m.return_type;
m.accept_children (this);
- current_symbol = current_symbol.parent_symbol;
- current_return_type = null;
+ current_symbol = old_symbol;
+ current_return_type = old_return_type;
if (current_symbol.parent_symbol is Method) {
/* lambda expressions produce nested methods */