Files
coffeescript/test/fixtures/execution/test_assignment.coffee
2010-01-17 10:40:59 -05:00

23 lines
301 B
CoffeeScript

# Assign to try/catch.
result: try
nonexistent * missing
catch error
true
result2: try nonexistent * missing catch error then true
print(result is true and result2 is true)
# Assign to conditional.
get_x: => 10
if x: get_x() then 100
print(x is 10)
x: if get_x() then 100
print(x is 100)