mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Adding a test for Issue #669
This commit is contained in:
parent
70cfd54ad4
commit
44618d5765
1 changed files with 5 additions and 1 deletions
|
@ -48,7 +48,11 @@ class OneClass
|
||||||
|
|
||||||
class TwoClass extends OneClass
|
class TwoClass extends OneClass
|
||||||
|
|
||||||
ok (new TwoClass('three')).name is 'three'
|
Function.prototype.new = -> new this arguments...
|
||||||
|
|
||||||
|
ok (TwoClass.new('three')).name is 'three'
|
||||||
|
|
||||||
|
delete Function.prototype.new
|
||||||
|
|
||||||
|
|
||||||
# And now the same tests, but written in the manual style:
|
# And now the same tests, but written in the manual style:
|
||||||
|
|
Loading…
Reference in a new issue