GDScript: Fix inheritance check of @onready for inner classes
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
extends Node
|
||||
|
||||
class Inner extends RefCounted:
|
||||
@onready var nope = 0
|
||||
|
||||
func test():
|
||||
print("Cannot use @onready without a Node base")
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
"@onready" can only be used in classes that inherit "Node".
|
||||
Reference in New Issue
Block a user