Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt
T
Alexander Udalov 9f67fe2fe3 Adapt CompileKotlinAgainstKotlin test to black box format
Rename/remove some obsolete test cases
2016-03-02 15:47:35 +03:00

21 lines
283 B
Kotlin
Vendored

// FILE: A.kt
package pkg
interface ClassA {
companion object {
val DEFAULT = object : ClassA {
override fun toString() = "OK"
}
}
}
// FILE: B.kt
import pkg.ClassA
fun box(): String {
val obj = ClassA.DEFAULT
return obj.toString()
}