mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
got extends back in the language -- use it together with super
This commit is contained in:
6
test/fixtures/execution/calling_super.cs
vendored
6
test/fixtures/execution/calling_super.cs
vendored
@@ -3,17 +3,17 @@ Base.prototype.func: string =>
|
||||
'zero/' + string.
|
||||
|
||||
FirstChild: => .
|
||||
FirstChild.prototype.__proto__: new Base()
|
||||
FirstChild extends new Base()
|
||||
FirstChild.prototype.func: string =>
|
||||
super('one/') + string.
|
||||
|
||||
SecondChild: => .
|
||||
SecondChild.prototype.__proto__: new FirstChild()
|
||||
SecondChild extends new FirstChild()
|
||||
SecondChild.prototype.func: string =>
|
||||
super('two/') + string.
|
||||
|
||||
ThirdChild: => .
|
||||
ThirdChild.prototype.__proto__: new SecondChild()
|
||||
ThirdChild extends new SecondChild()
|
||||
ThirdChild.prototype.func: string =>
|
||||
super('three/') + string.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user