summaryrefslogtreecommitdiff
path: root/vala/valaforeachstatement.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/valaforeachstatement.vala')
-rw-r--r--vala/valaforeachstatement.vala5
1 files changed, 3 insertions, 2 deletions
diff --git a/vala/valaforeachstatement.vala b/vala/valaforeachstatement.vala
index 4de3f52bd..9761f21b5 100644
--- a/vala/valaforeachstatement.vala
+++ b/vala/valaforeachstatement.vala
@@ -369,9 +369,10 @@ public class Vala.ForeachStatement : Block {
body.check (context);
- foreach (LocalVariable local in get_local_variables ()) {
+ get_local_variables ().foreach ((local) => {
local.active = false;
- }
+ return true;
+ });
context.analyzer.current_symbol = context.analyzer.current_symbol.parent_symbol;