1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Fix: Get constructor as Callable

This commit is contained in:
mashumafi
2023-02-20 21:55:35 -05:00
parent 62d4d8bfc6
commit b39b4010bd
3 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
# https://github.com/godotengine/godot/issues/70319
class InnerClass:
pass
func test():
var inner_ctor : Callable = InnerClass.new
print(inner_ctor)
var native_ctor : Callable = Node.new
print(native_ctor)

View File

@@ -0,0 +1,3 @@
GDTEST_OK
GDScript::new
GDScriptNativeClass::new