[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
+13
View File
@@ -0,0 +1,13 @@
// EXPECTED_REACHABLE_NODES: 1340
open class A(val x: Int)
class B(val p: Int, val q: Int): A(p + q)
fun box(): String {
val b = B(2, 3)
assertEquals(b.p, 2)
assertEquals(b.q, 3)
assertEquals(b.x, 5)
return "OK"
}