[vala] Do not set error flag when using delegate prototype as argument
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Do not set error flag when using delegate prototype as argument
- Date: Fri, 28 May 2010 18:00:08 +0000 (UTC)
commit 6ffd4fe9d102772a8a12a3d7808533085bfbc5c9
Author: Jürg Billeter <j bitron ch>
Date: Fri May 28 19:58:53 2010 +0200
Do not set error flag when using delegate prototype as argument
vala/valasemanticanalyzer.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index 5f1625d..5e7754d 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -573,8 +573,8 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
var deleg_type = arg.target_type as DelegateType;
if (deleg_type == null || deleg_type.delegate_symbol.has_target) {
Report.error (arg.source_reference, "Access to instance member `%s' denied".printf (arg.symbol_reference.get_full_name ()));
+ return false;
}
- return false;
}
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]