[JVM_IR] Fix mangling of default argument stubs for internal methods.

The MethodSignatureMapper expected to be able to look at the body
of the default argument stub. That is of course not possible when
it is from an external dependency.

Instead, we go through the attribute owner to get to the method
the stub is a default argument adapter for.
This commit is contained in:
Mads Ager
2020-10-08 14:29:46 +02:00
committed by Alexander Udalov
parent 8c88670185
commit afd710292a
7 changed files with 57 additions and 12 deletions
@@ -0,0 +1,15 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: NATIVE
// FILE: A.kt
package a
class Box() {
internal fun result(value: String = "OK"): String = value
}
// FILE: B.kt
fun box(): String {
return a.Box().result()
}