summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-01 10:54:22 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-01 10:54:22 +0100
commitafe3b94ab28a28d562fd96f3daf41a22cb26757a (patch)
tree1b2e0cfc8e529ae652f79c286495527883581fa6 /modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd
parentf7397a5ac6bffc0df24cae61b8aabfa4a3b65347 (diff)
Revert "GDScript: Add warnings that are set to error by default"
This reverts commit a166833bfa23a21a7bff196a85a20b014e7c1396. This caused multiple regressions. Needs to be redone with more testing before merge. Fixes #72501.
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd b/modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd
index b447180ea8..48a804ff54 100644
--- a/modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd
+++ b/modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd
@@ -2,18 +2,16 @@ func variant() -> Variant: return null
var member_weak = variant()
var member_typed: Variant = variant()
-@warning_ignore("inference_on_variant")
var member_inferred := variant()
func param_weak(param = variant()) -> void: print(param)
func param_typed(param: Variant = variant()) -> void: print(param)
-@warning_ignore("inference_on_variant")
func param_inferred(param := variant()) -> void: print(param)
func return_untyped(): return variant()
func return_typed() -> Variant: return variant()
-@warning_ignore("unused_variable", "inference_on_variant")
+@warning_ignore("unused_variable")
func test() -> void:
var weak = variant()
var typed: Variant = variant()