summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime/features/onready_base_before_subclass.gd
blob: 99156adb286527f66b6291cbdb4997264fdf1314 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#GH-63329
class A extends Node:
	@onready var a := get_value("a")

	func get_value(var_name: String) -> String:
		print(var_name)
		return var_name

class B extends A:
	@onready var b := get_value("b")

	func _ready():
		pass

func test():
	var node := B.new()
	node._ready()
	node.free()