summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime/features/static_func_as_callable.gd
blob: 65635daa36e639940b422dd14459aeba367f081c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# GH-41919

class_name TestStaticFuncAsCallable

class InnerClass:
	static func inner_my_func():
		print("inner_my_func")

static func my_func():
		print("my_func")

var a: Callable = TestStaticFuncAsCallable.my_func
var b: Callable = InnerClass.inner_my_func

func test():
	a.call()
	b.call()