blob: 418501dcc570dd0eddf61bd345903c59726133a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
const PreloadClass = preload("static_duplicate_preload.notest.gd")
const PreloadClassAlias = PreloadClass
func test():
var dup_preload_one = PreloadClass.duplicate()
print(dup_preload_one == Vector2.ONE)
var dup_preload_two = (PreloadClass as GDScript).duplicate()
print(dup_preload_two is GDScript)
var dup_preload_alias_one = PreloadClassAlias.duplicate()
print(dup_preload_alias_one == Vector2.ONE)
var dup_preload_alias_two = (PreloadClassAlias as GDScript).duplicate()
print(dup_preload_alias_two is GDScript)
var PreloadClassAsGDScript = PreloadClass as GDScript
var dup_preload_class_as_gdscript_one = PreloadClassAsGDScript.duplicate()
print(dup_preload_class_as_gdscript_one is GDScript)
|