mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
adding a test for Issue #550.
This commit is contained in:
parent
5b848fbc47
commit
58a5d93214
1 changed files with 9 additions and 0 deletions
|
@ -211,3 +211,12 @@ meth 'apple', b: 1, a: 13, ->
|
|||
'orange'
|
||||
|
||||
ok a is '13 apple orange'
|
||||
|
||||
|
||||
# Ensure that empty functions don't return mistaken values.
|
||||
obj =
|
||||
func: (@param, @rest...) ->
|
||||
|
||||
ok obj.func(101, 102, 103, 104) is undefined
|
||||
ok obj.param is 101
|
||||
ok obj.rest.join(' ') is '102 103 104'
|
||||
|
|
Loading…
Reference in a new issue