removing the constructor safety check -- it wasn't safe enough (Issue 36)

This commit is contained in:
Jeremy Ashkenas
2010-02-09 07:59:48 -05:00
parent 522df2a355
commit c6a6788694
4 changed files with 22 additions and 14 deletions

View File

@@ -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