mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
fixing return node squashing the possiblity of a ternary, when there should be one. Issue #475
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user