Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.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

16 lines
198 B
Kotlin
Vendored

// FILE: A.kt
class A {
companion object {
fun foo() = 42
val bar = "OK"
}
}
// FILE: B.kt
fun box(): String {
if (A.foo() != 42) return "Fail foo"
return A.bar
}