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:
parent
7f76c22894
commit
f9d630119d
1 changed files with 8 additions and 0 deletions
8
test/fixtures/execution/test_named_functions.coffee
vendored
Normal file
8
test/fixtures/execution/test_named_functions.coffee
vendored
Normal 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')
|
Loading…
Reference in a new issue