Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt
T
Steven Schäfer 9c4f8f7e54 JVM IR: Fix signature mapping for inline classes using new mangling
When resolving inline class methods in binary dependencies we look for
methods matching both the new and the old mangling scheme. On the IR
backend the method signature has to be computed for the inline class
replacement, since the logic for signature mangling is not contained in
the method signature mapping, unlike in the old backend.
2021-01-20 17:43:41 +01:00

12 lines
159 B
Kotlin
Vendored

// FILE: A.kt
inline class A(val x: String) {
inline fun f(other: A): A = other
}
// FILE: B.kt
fun box(): String {
return A("Fail").f(A("OK")).x
}