diff options
author | jpcerrone <jpcerronex@gmail.com> | 2023-04-03 10:57:41 -0300 |
---|---|---|
committer | jpcerrone <jpcerronex@gmail.com> | 2023-07-24 17:22:12 -0300 |
commit | 13c73500ab9b09c5b946968716bef03a814fb65d (patch) | |
tree | 4decab07542187b30962d49596e6856ca05ba238 /modules/gdscript/tests/scripts/analyzer/features | |
parent | 91258e52be59d1c1c93b0b798f2401dbbb15a1d0 (diff) | |
download | redot-engine-13c73500ab9b09c5b946968716bef03a814fb65d.tar.gz |
Fix for not being able to ignore shadowing warnings on class scope
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/features')
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.gd | 4 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.out | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.gd b/modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.gd index a9004a346b..3e647407cd 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.gd @@ -1,7 +1,7 @@ extends Node @onready var shorthand = $Node -@onready var call = get_node(^"Node") +@onready var call_no_cast = get_node(^"Node") @onready var shorthand_with_cast = $Node as Node @onready var call_with_cast = get_node(^"Node") as Node @@ -13,6 +13,6 @@ func _init(): func test(): # Those are expected to be `null` since `_ready()` is never called on tests. prints("shorthand", shorthand) - prints("call", call) + prints("call_no_cast", call_no_cast) prints("shorthand_with_cast", shorthand_with_cast) prints("call_with_cast", call_with_cast) diff --git a/modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.out b/modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.out index eddc2deec0..78b830aad0 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.out +++ b/modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.out @@ -1,5 +1,5 @@ GDTEST_OK shorthand <null> -call <null> +call_no_cast <null> shorthand_with_cast <null> call_with_cast <null> |