Core: Allow methods of built-in Variant types to be used as Callables
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
func test():
|
||||
var array: Array = [1, 2, 3]
|
||||
print(array)
|
||||
var callable: Callable = array.clear
|
||||
callable.call()
|
||||
print(array)
|
||||
@@ -0,0 +1,3 @@
|
||||
GDTEST_OK
|
||||
[1, 2, 3]
|
||||
[]
|
||||
Reference in New Issue
Block a user