mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
slightly nicer implementation of SplatNode.compileSplattedArray
This commit is contained in:
@@ -105,3 +105,11 @@ ok pen is 2
|
||||
|
||||
method 1, 2
|
||||
ok pen is 2
|
||||
|
||||
|
||||
# Array splat expansions with assigns.
|
||||
nums: [1, 2, 3]
|
||||
list: [a: 0, nums..., b: 4]
|
||||
ok a is 0
|
||||
ok b is 4
|
||||
ok list.join(' ') is '0 1 2 3 4'
|
||||
|
||||
Reference in New Issue
Block a user