[vala] Fix symbol resolution in closures
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix symbol resolution in closures
- Date: Wed, 8 Aug 2012 18:57:37 +0000 (UTC)
commit a39412e86d958bf71a2826c5b98b1527048b7988
Author: JÃrg Billeter <j bitron ch>
Date: Wed Aug 8 20:51:17 2012 +0200
Fix symbol resolution in closures
vala/valamemberaccess.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valamemberaccess.vala b/vala/valamemberaccess.vala
index 059a136..de970b8 100644
--- a/vala/valamemberaccess.vala
+++ b/vala/valamemberaccess.vala
@@ -267,7 +267,7 @@ public class Vala.MemberAccess : Expression {
symbol_reference = SemanticAnalyzer.symbol_lookup_inherited (sym, member_name);
- if (symbol_reference == null && may_access_instance_members) {
+ if (symbol_reference == null && sym is TypeSymbol && may_access_instance_members) {
// used for generated to_string methods in enums
symbol_reference = this_parameter.variable_type.get_member (member_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]