mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
AbstractCompileKotlinAgainstMultifileKotlinTest is broken in this commit; will be fixed later
33 lines
314 B
Kotlin
Vendored
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"
|
|
}
|
|
}
|