mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Support for @-prefixed splats.
This commit is contained in:
@@ -29,4 +29,7 @@ ok sumOfArgs(1, 2, 3, 4, 5) is 15
|
||||
ok context.arg is 1
|
||||
|
||||
((splat..., @arg) ->).call context, 1, 2, 3
|
||||
ok context.arg is 3
|
||||
ok context.arg is 3
|
||||
|
||||
((@arg...) ->).call context, 1, 2, 3
|
||||
ok context.arg.join ' ' is '1 2 3'
|
||||
Reference in New Issue
Block a user