From bc93e41fba1c1ba5e8f28cd3fb0536b598778ccb Mon Sep 17 00:00:00 2001 From: Daniel Espinosa Date: Sun, 2 Jan 2022 19:54:01 -0600 Subject: [PATCH] SwitchSection: avoid static access to Report --- vala/valaswitchsection.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vala/valaswitchsection.vala b/vala/valaswitchsection.vala index a44256b85..06b070612 100644 --- a/vala/valaswitchsection.vala +++ b/vala/valaswitchsection.vala @@ -89,7 +89,7 @@ public class Vala.SwitchSection : Block { } if (!(parent_node is SwitchStatement)) { - Report.error (source_reference, "no enclosing switch statement found"); + context.report.log_error (source_reference, "no enclosing switch statement found"); error = true; return false; } -- 2.47.2