diff options
author | George Marques <george@gmarqu.es> | 2023-02-06 14:52:13 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2023-02-06 14:52:13 -0300 |
commit | ed5ddab7e54c121726116e36604b062dc172a2d0 (patch) | |
tree | 6cd9ea9b505b73ff4711cdb0ed24eda3923b154a /modules/gdscript/tests/scripts/analyzer/features | |
parent | eee343210dd3eaf5fb149ca7a86371154032e47e (diff) |
GDScript: Fix inheritance check of @onready for inner classes
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/features')
2 files changed, 9 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/onready_on_inner_class_with_non_node_outer.gd b/modules/gdscript/tests/scripts/analyzer/features/onready_on_inner_class_with_non_node_outer.gd new file mode 100644 index 0000000000..1ac03c2181 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/onready_on_inner_class_with_non_node_outer.gd @@ -0,0 +1,7 @@ +extends RefCounted + +func test(): + print("ok") + +class Inner extends Node: + @onready var okay = 0 diff --git a/modules/gdscript/tests/scripts/analyzer/features/onready_on_inner_class_with_non_node_outer.out b/modules/gdscript/tests/scripts/analyzer/features/onready_on_inner_class_with_non_node_outer.out new file mode 100644 index 0000000000..1b47ed10dc --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/onready_on_inner_class_with_non_node_outer.out @@ -0,0 +1,2 @@ +GDTEST_OK +ok |