[vala/wip/transform-ast] FIX semantic check of switch-section



commit ebe7ed7cf3d37a2e2d832c310d7d804a37f7ac76
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Mar 31 18:44:18 2020 +0200

    FIX semantic check of switch-section

 vala/valaswitchsection.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/vala/valaswitchsection.vala b/vala/valaswitchsection.vala
index 075feaa38..dbfa2d833 100644
--- a/vala/valaswitchsection.vala
+++ b/vala/valaswitchsection.vala
@@ -88,6 +88,8 @@ public class Vala.SwitchSection : Block {
                        return !error;
                }
 
+               owner = context.analyzer.get_current_non_local_symbol (parent_node).scope;
+
                foreach (SwitchLabel label in get_labels ()) {
                        label.check (context);
                }


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