You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
GDScript: Add support for variadic functions
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
GDTEST_OK
|
||||
func test_func(x: int, y: int = 0, ...args) -> void
|
||||
1 0 []
|
||||
1 2 []
|
||||
1 2 [3]
|
||||
1 2 [3, 4]
|
||||
1 2 [3, 4, 5]
|
||||
1 0 []
|
||||
1 2 []
|
||||
1 2 [3]
|
||||
1 2 [3, 4]
|
||||
1 2 [3, 4, 5]
|
||||
Reference in New Issue
Block a user