mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
enabling passed functions to fire implicit method calls
This commit is contained in:
@@ -52,3 +52,6 @@ print Math.FastAdd(20, 20) is 40
|
||||
print 100 > 1 if 1 > 0
|
||||
print true unless false
|
||||
print true for i in [1..3]
|
||||
|
||||
print_func: (f) => print(f())
|
||||
print_func => true
|
||||
Reference in New Issue
Block a user