Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/genericMethodWithInlineClassOverride.kt
T
2021-10-11 12:09:52 +03:00

18 lines
286 B
Kotlin
Vendored

// WITH_RUNTIME
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.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
}