mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
17 lines
247 B
Kotlin
Vendored
17 lines
247 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline 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
|
|
}
|