[vala] Fix lambda expressions in static and class destructors
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix lambda expressions in static and class destructors
- Date: Fri, 9 Sep 2011 14:04:32 +0000 (UTC)
commit cc186ce4915d6ef28e04870e497f3cba9e42fd84
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Sep 9 15:35:59 2011 +0200
Fix lambda expressions in static and class destructors
vala/valasemanticanalyzer.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index 381a2eb..bd4f4fb 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -772,7 +772,8 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
var c = (Constructor) sym;
return c.binding == MemberBinding.INSTANCE;
} else if (sym is Destructor) {
- return true;
+ var d = (Destructor) sym;
+ return d.binding == MemberBinding.INSTANCE;
} else if (sym is Property) {
var p = (Property) sym;
return p.binding == MemberBinding.INSTANCE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]