Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt
T

17 lines
214 B
Kotlin
Vendored

// WITH_RUNTIME
@JvmInline
value class A(val s: String)
abstract class B<T> {
abstract fun f(x: T): T
}
class C: B<A>() {
override fun f(x: A): A = x
}
fun box(): String {
return C().f(A("OK")).s
}