Files
kotlin-fork/js/js.translator/testData/box/objectDeclaration/objectInheritingFromClass.kt
T
2018-09-12 09:49:25 +03:00

11 lines
166 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1291
package foo
abstract class A(val s: String) {
}
object B : A("test") {
}
fun box() = if (B.s == "test") "OK" else "fail: ${B.s}"