Commit 65e89913 authored by Evan Nemerson's avatar Evan Nemerson Committed by Jürg Billeter

Fix handling of exceptions in property accessors

Fixes bug 627090.
parent fd18a738
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment