1
0
Fork 0
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:
Jeremy Ashkenas 2010-07-28 20:43:39 -04:00
parent 5b848fbc47
commit 58a5d93214

View file

@ -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'