[vala] Fix handling of exceptions in property accessors



commit 65e899135debb1138a16778796b959af9e041517
Author: Evan Nemerson <evan coeus-group com>
Date:   Mon Aug 16 14:50:27 2010 -0700

    Fix handling of exceptions in property accessors
    
    Fixes bug 627090.

 codegen/valaccodebasemodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index c3ac328..f69cb92 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3392,7 +3392,7 @@ public class Vala.CCodeBaseModule : CodeGenerator {
 
 		var sym = current_symbol;
 
-		while (!(sym is Method) && sym.scope.lookup (local.name) == null) {
+		while (!(sym is Method || sym is PropertyAccessor) && sym.scope.lookup (local.name) == null) {
 			if ((sym.parent_node is TryStatement && ((TryStatement) sym.parent_node).finally_body != null) ||
 				(sym.parent_node is CatchClause && ((TryStatement) sym.parent_node.parent_node).finally_body != null)) {
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]