Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/kt51672.kt
T
Steven Schäfer 1134dc3858 JVM IR: Resolve fake overrides during inline class mangling
This is necessary to determine which mangling scheme to use (KT-51672).
2022-03-24 00:38:34 +00:00

21 lines
290 B
Kotlin
Vendored

// MODULE: lib
// WITH_STDLIB
// TARGET_BACKEND: JVM
// FILE: lib.kt
@JvmInline
value class S(val value: String)
interface A {
fun f(s: S): S = s
}
interface B : A
// MODULE: main(lib)
// FILE: main.kt
interface C : B
fun box(): String {
return object : C {}.f(S("OK")).value
}