Adding unmatched 'then' to the list of things that closes a single-line implicit call early. Issue #611.

This commit is contained in:
Jeremy Ashkenas
2010-08-30 22:04:13 -04:00
parent 0caa731291
commit eb9a524ea1
3 changed files with 26 additions and 2 deletions

View File

@@ -109,3 +109,12 @@ func = ->
a
ok func() is 5
# Unmatched 'then' should catch implicit calls.
i = 1
isTrue = (x) -> x is true
if isTrue yes then i += 1
ok i is 2