Files
kotlin/compiler/testData/codegen/java8/box/jvm8/oneImplementation.kt
Mikhael Bogdanov 995156b801 Remove wrong directive
Similar test exists under 'defaults' foldes

(cherry picked from commit c143480)
2018-04-03 19:46:05 +02:00

19 lines
463 B
Kotlin
Vendored

// JVM_TARGET: 1.8
interface KCallable {
val returnType: String
}
interface KCallableImpl : KCallable {
override val returnType: String
get() = "OK"
}
interface KCallableImpl2 : KCallableImpl
open class DescriptorBasedProperty : KCallableImpl
open class KProperty1Impl : DescriptorBasedProperty(), KCallableImpl2
open class KMutableProperty1Impl : KProperty1Impl(), KCallable
fun box(): String {
return KMutableProperty1Impl().returnType
}