10 lines
132 B
Kotlin
Vendored
10 lines
132 B
Kotlin
Vendored
package foo
|
|
|
|
abstract class A(val s: String) {
|
|
}
|
|
|
|
object B : A("test") {
|
|
}
|
|
|
|
fun box() = if (B.s == "test") "OK" else "fail: ${B.s}"
|