Files
coffeescript/test/fixtures/execution/test_assignment.coffee

23 lines
298 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