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

Merge pull request #73657 from mashumafi/callable-ctor

Fix: Get constructor as Callable
This commit is contained in:
Rémi Verschelde
2023-06-18 16:27:42 +02:00
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