Files
coffeescript/test/fixtures/execution/test_arguments.coffee
Jeremy Ashkenas f622fc43bc --
2010-01-01 10:40:29 -05:00

18 lines
187 B
CoffeeScript

area: x, y, x1, y1 =>
(x - x1) * (x - y1)
x: y: 10
x1: y1: 20
print(area(x, y, x1, y1) is 100)
print(area(x, y,
x1, y1) is 100)
print(area(
x
y
x1
y1
) is 100)