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:
committed by
Ilmir Usmanov
parent
91717cdcdd
commit
9c4f8f7e54
+11
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user