From 2fdaf2919c03ab50f971f2d51616d4ee329d29af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 6 Feb 2023 18:19:18 +0100 Subject: GDScript: Fix recently merged test not ignoring warnings --- modules/gdscript/tests/scripts/analyzer/features/ternary_hard_infer.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/gdscript/tests') diff --git a/modules/gdscript/tests/scripts/analyzer/features/ternary_hard_infer.gd b/modules/gdscript/tests/scripts/analyzer/features/ternary_hard_infer.gd index fbb7530615..44ca5f4dd0 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/ternary_hard_infer.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/ternary_hard_infer.gd @@ -4,8 +4,11 @@ func test(): var result_hard_int := left_hard_int if true else right_hard_int assert(result_hard_int == 1) + @warning_ignore("inference_on_variant") var left_hard_variant := 1 as Variant + @warning_ignore("inference_on_variant") var right_hard_variant := 2.0 as Variant + @warning_ignore("inference_on_variant") var result_hard_variant := left_hard_variant if true else right_hard_variant assert(result_hard_variant == 1) -- cgit v1.2.3