Core: Allow methods of built-in Variant types to be used as Callables

This commit is contained in:
Danil Alexeev
2023-09-24 23:33:28 +03:00
parent 06d5189167
commit b04263644c
9 changed files with 231 additions and 73 deletions

View File

@@ -0,0 +1,6 @@
func test():
var array: Array = [1, 2, 3]
print(array)
var callable: Callable = array.clear
callable.call()
print(array)

View File

@@ -0,0 +1,3 @@
GDTEST_OK
[1, 2, 3]
[]