Merge pull request #82264 from dalexeev/core-builtin-methods-as-callables

Core: Allow methods of built-in `Variant` types to be used as Callables
This commit is contained in:
Rémi Verschelde
2024-01-02 18:05:05 +01:00
9 changed files with 231 additions and 73 deletions
@@ -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]
[]