fixing return node squashing the possiblity of a ternary, when there should be one. Issue #475

This commit is contained in:
Jeremy Ashkenas
2010-07-06 23:04:35 -04:00
parent 577daf5457
commit 358edfb21f
6 changed files with 46 additions and 128 deletions

View File

@@ -60,3 +60,10 @@ else if true
else
ok result is undefined
# Return an if with no else.
func: ->
return (if false then callback())
ok func() is null