From 6f788d583649ab0cae888f8f83e0659d8863d4c4 Mon Sep 17 00:00:00 2001 From: Daniel Espinosa Date: Sun, 2 Jan 2022 19:19:10 -0600 Subject: [PATCH] Parameter: avoid static access to Report --- vala/valaparameter.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vala/valaparameter.vala b/vala/valaparameter.vala index 82b761c61..25cdf19ae 100644 --- a/vala/valaparameter.vala +++ b/vala/valaparameter.vala @@ -189,7 +189,7 @@ public class Vala.Parameter : Variable { if (initializer is NullLiteral && !variable_type.nullable && direction != ParameterDirection.OUT) { - Report.warning (source_reference, "`null' incompatible with parameter type `%s'", variable_type.to_string ()); + context.report.log_warning (source_reference, "`null' incompatible with parameter type `%s'", variable_type.to_string ()); } else if (!(initializer is NullLiteral) && direction == ParameterDirection.OUT) { error = true; context.report.log_error (source_reference, "only `null' is allowed as default value for out parameters"); -- 2.47.2