GDScript: Fix recently merged test not ignoring warnings

This commit is contained in:
Rémi Verschelde 2023-02-06 18:19:18 +01:00
parent eee343210d
commit 2fdaf2919c
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 0 deletions

View File

@ -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)