10 lines
102 B
Kotlin
10 lines
102 B
Kotlin
package foo
|
|
|
|
abstract class A(val s: String) {
|
|
}
|
|
|
|
object B : A("test") {
|
|
}
|
|
|
|
fun box() = B.s == "test"
|