mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
converted the tests to use optional parentheses -- lot's of little subtleties to work out
This commit is contained in:
@@ -18,19 +18,19 @@ ThirdChild extends SecondChild
|
||||
ThirdChild::func: string =>
|
||||
super('three/') + string
|
||||
|
||||
result: (new ThirdChild()).func('four')
|
||||
result: (new ThirdChild()).func 'four'
|
||||
|
||||
print(result is 'zero/one/two/three/four')
|
||||
print result is 'zero/one/two/three/four'
|
||||
|
||||
|
||||
TopClass: arg =>
|
||||
this.prop: 'top-' + arg
|
||||
|
||||
SuperClass: arg =>
|
||||
super('super-' + arg)
|
||||
super 'super-' + arg
|
||||
|
||||
SubClass: =>
|
||||
super('sub')
|
||||
super 'sub'
|
||||
|
||||
SuperClass extends TopClass
|
||||
SubClass extends SuperClass
|
||||
|
||||
Reference in New Issue
Block a user