JVM IR: Fix inline class mangling for calls to internal functions

...in a different module, e.g., using -Xfriend-paths.
This commit is contained in:
Steven Schäfer
2021-01-28 14:20:21 +01:00
committed by Ilmir Usmanov
parent 6747084fe2
commit 482e217b5e
8 changed files with 48 additions and 3 deletions
@@ -0,0 +1,16 @@
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: A.kt
package a
inline class Message(val value: String)
class Box {
internal fun result(msg: Message): String = msg.value
}
// FILE: B.kt
fun box(): String {
return a.Box().result(a.Message("OK"))
}