mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
complete implicit functions, I think these are done.
This commit is contained in:
12
test/fixtures/execution/test_functions.coffee
vendored
12
test/fixtures/execution/test_functions.coffee
vendored
@@ -64,3 +64,15 @@ result: call ->
|
||||
Math.Add(5, 5)
|
||||
|
||||
print result is 10
|
||||
|
||||
|
||||
# And even with strange things like this:
|
||||
|
||||
funcs: [(x) -> x, (x) -> x * x]
|
||||
result: funcs[1] 5
|
||||
|
||||
print result is 25
|
||||
|
||||
result: ("hello".slice) 3
|
||||
|
||||
print result is 'lo'
|
||||
Reference in New Issue
Block a user