mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
15 lines
235 B
Kotlin
Vendored
15 lines
235 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
interface A {
|
|
fun f(x: String) = x
|
|
}
|
|
|
|
inline class B(val y: String) : A {
|
|
override fun f(x: String) = super.f(x + y)
|
|
}
|
|
|
|
fun box(): String {
|
|
return B("K").f("O")
|
|
}
|