Fixing the longstanding and important Issue #637. I'm glad this one got got.

This commit is contained in:
Jeremy Ashkenas
2010-08-21 12:13:43 -04:00
parent 143c4d5efc
commit d5d5de55ae
4 changed files with 32 additions and 6 deletions

View File

@@ -96,3 +96,16 @@ catch e
x = 1
result = x + if false then 10 else 1
ok result is 2
# If/else indented within an assignment.
func = ->
a =
if false
3
else
5
101
a
ok func() is 5