[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 @@
// EXPECTED_REACHABLE_NODES: 1343
abstract class A {
abstract fun foo(): String
val ss = foo() + "K"
}
class O(val s: String) {
inner class I() : A() {
override fun foo() = s
}
fun result() = I().ss
}
fun box(): String {
val o = O("O")
return o.result()
}