Add test for const class references
This commit is contained in:
parent
62d4d8bfc6
commit
8eb837dc3d
@ -0,0 +1,16 @@
|
|||||||
|
# https://github.com/godotengine/godot/issues/61636
|
||||||
|
|
||||||
|
const External := preload("const_class_reference_external.notest.gd")
|
||||||
|
|
||||||
|
class Class1:
|
||||||
|
class Class2:
|
||||||
|
pass
|
||||||
|
|
||||||
|
const Class1Alias = Class1
|
||||||
|
const Class1Class2Alias = Class1.Class2
|
||||||
|
|
||||||
|
const ExternalAlias = External
|
||||||
|
const ExternalClassAlias = External.Class
|
||||||
|
|
||||||
|
func test():
|
||||||
|
pass
|
@ -0,0 +1 @@
|
|||||||
|
GDTEST_OK
|
@ -0,0 +1,2 @@
|
|||||||
|
class Class:
|
||||||
|
pass
|
Loading…
Reference in New Issue
Block a user