mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
make nested implicit indentation just a little bit smarter about outdents and stack levels
This commit is contained in:
11
test/fixtures/execution/test_functions.coffee
vendored
11
test/fixtures/execution/test_functions.coffee
vendored
@@ -54,4 +54,13 @@ print true unless false
|
||||
print true for i in [1..3]
|
||||
|
||||
print_func: (f) -> print(f())
|
||||
print_func -> true
|
||||
print_func -> true
|
||||
|
||||
# Optional parens can be used in a nested fashion.
|
||||
call: (func) -> func()
|
||||
|
||||
result: call ->
|
||||
inner: call ->
|
||||
Math.Add(5, 5)
|
||||
|
||||
print result is 10
|
||||
|
||||
Reference in New Issue
Block a user