mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
removing the constructor safety check -- it wasn't safe enough (Issue 36)
This commit is contained in:
@@ -14,6 +14,7 @@ SecondChild::func: (string) ->
|
||||
|
||||
ThirdChild: ->
|
||||
@array: [1, 2, 3]
|
||||
this
|
||||
ThirdChild extends SecondChild
|
||||
ThirdChild::func: (string) ->
|
||||
super('three/') + string
|
||||
@@ -25,12 +26,15 @@ puts result is 'zero/one/two/three/four'
|
||||
|
||||
TopClass: (arg) ->
|
||||
@prop: 'top-' + arg
|
||||
this
|
||||
|
||||
SuperClass: (arg) ->
|
||||
super 'super-' + arg
|
||||
this
|
||||
|
||||
SubClass: ->
|
||||
super 'sub'
|
||||
this
|
||||
|
||||
SuperClass extends TopClass
|
||||
SubClass extends SuperClass
|
||||
|
||||
Reference in New Issue
Block a user