mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
adding another statement/expression/return test.
This commit is contained in:
@@ -21,4 +21,13 @@ func: ->
|
||||
else
|
||||
"word"
|
||||
|
||||
ok func() is 'word'
|
||||
ok func() is 'word'
|
||||
|
||||
|
||||
# And with switches.
|
||||
func: ->
|
||||
switch 'a'
|
||||
when 'a' then 42
|
||||
else return 23
|
||||
|
||||
ok func() is 42
|
||||
Reference in New Issue
Block a user