[JS BE] add tests for es6-classes

This commit is contained in:
Vitaly
2020-05-09 14:23:45 +03:00
committed by romanart
parent adf6831d7f
commit a231b21c69
20 changed files with 581 additions and 0 deletions
@@ -0,0 +1,19 @@
//IGNORE_BACKEND: JS, JS_IR
open external class E(x: Int, y: Int) {
val t: Int = definedExternally
}
open class A(i: Int, j: Int) : E(i, j)
class B : A {
constructor() : super(3, 4)
}
fun box(): String {
val b = B()
assertEquals(7, b.t)
return "OK"
}