You've already forked godot
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:
@@ -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)
|
||||
@@ -0,0 +1,3 @@
|
||||
GDTEST_OK
|
||||
GDScript::new
|
||||
GDScriptNativeClass::new
|
||||
Reference in New Issue
Block a user