Add test for const class references

This commit is contained in:
mashumafi 2023-02-20 23:01:32 -05:00
parent 62d4d8bfc6
commit 8eb837dc3d
3 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1 @@
GDTEST_OK

View File

@ -0,0 +1,2 @@
class Class:
pass