1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

adding a test case for named functions

This commit is contained in:
Jeremy Ashkenas 2009-12-31 10:52:00 -05:00
parent 7f76c22894
commit f9d630119d

View file

@ -0,0 +1,8 @@
x: 1
y: {}
y.x: => 3
print(x is 1)
print(typeof(y.x) is 'function')
print(y.x() is 3)
print(y.x.name is 'x')