From afe3b94ab28a28d562fd96f3daf41a22cb26757a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 1 Feb 2023 10:54:22 +0100 Subject: 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. --- modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/gdscript/tests/scripts/analyzer/features/hard_variants.gd') 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() -- cgit v1.2.3