summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/analyzer
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-06 18:19:18 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-06 18:19:34 +0100
commit2fdaf2919c03ab50f971f2d51616d4ee329d29af (patch)
tree8501caf866ba25ceac0e3597e91e24785dc92f12 /modules/gdscript/tests/scripts/analyzer
parenteee343210dd3eaf5fb149ca7a86371154032e47e (diff)
GDScript: Fix recently merged test not ignoring warnings
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/features/ternary_hard_infer.gd3
1 files changed, 3 insertions, 0 deletions
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)