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.
This commit is contained in:
Steven Schäfer
2021-01-20 12:57:18 +01:00
committed by Ilmir Usmanov
parent 91717cdcdd
commit 9c4f8f7e54
8 changed files with 60 additions and 11 deletions
@@ -0,0 +1,11 @@
// 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
}