summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/features/inner_class_access_from_inside.gd
blob: 51c589b8e09dbbe504d9505a5e0077b632a22f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# GH-80508

class A:
	func a():
		return A.new()
	func b():
		return B.new()

class B:
	func a():
		return A.new()
	func b():
		return B.new()

func test():
	var a := A.new()
	var b := B.new()
	print(a.a() is A)
	print(a.b() is B)
	print(b.a() is A)
	print(b.b() is B)