We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4c802f commit 40b7ed6Copy full SHA for 40b7ed6
spec/class_spec.moon
@@ -198,3 +198,39 @@ describe "class", ->
198
assert.same 10000, instance\cool!
199
assert B == instance\get_super!, "expected super to be B"
200
201
+ it "should resolve many levels of super", ->
202
+ class One
203
+ a: =>
204
+ 1
205
+
206
+ class Two extends One
207
208
+ super! + 2
209
210
+ class Three extends Two
211
212
+ super! + 3
213
214
+ i = Three!
215
216
+ assert.same 6, i\a!
217
218
219
+ it "should resolve many levels of super with a gap", ->
220
221
222
223
224
225
226
227
228
229
230
+ class Four extends Three
231
232
+ super! + 4
233
234
+ i = Four!
235
236
+ assert.same 8, i\a!
0 commit comments