Files
kotlin/compiler/testData/codegen/boxMultiFile/kt9958Interface.kt
Alexander Udalov e0b6f12737 Migrate boxMultiFile and boxMultifileClass tests to new multi-file tests
AbstractCompileKotlinAgainstMultifileKotlinTest is broken in this commit; will
be fixed later
2016-02-27 15:40:03 +03:00

33 lines
314 B
Kotlin
Vendored

// FILE: a.kt
package a
import b.*
interface B {
companion object : A() {}
fun test() {
foo()
}
}
class C : B
fun box(): String {
C().test()
return result
}
// FILE: b.kt
package b
var result = "fail"
abstract class A {
protected fun foo() {
result = "OK"
}
}