Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/inlineClassInheritingDefaultMethod.kt
T
2021-11-30 03:33:56 +03:00

11 lines
151 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
interface I {
fun foo(): A = A("OK")
}
inline class A(val x: String): I { }
fun box() = A("").foo().x