mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
adding splats to function definitions
This commit is contained in:
6
test/fixtures/execution/test_splats.coffee
vendored
Normal file
6
test/fixtures/execution/test_splats.coffee
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
func: first, second, *rest =>
|
||||
rest.join(' ')
|
||||
|
||||
result: func(1, 2, 3, 4, 5)
|
||||
|
||||
print(result is "3 4 5")
|
||||
Reference in New Issue
Block a user