Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.kt
T
Alexander Udalov f0282bcfdf JVM IR: add module name for internal functions before "$default"
The change is a bit complicated because the name mapping logic is
refactored so that we would compute the needed suffix first (either
module name, or multifile part class name), and then shove it into the
mangled name between the original function name and "$default", if the
function in question is the default arguments adapter.

The main motivation for this change was to fix KT-41809, but as a side
effect, private functions with default arguments in multifile parts now
also contain the file name, just like normal private functions.

 #KT-41809 Fixed
2020-09-14 13:18:24 +02:00

13 lines
258 B
Kotlin
Vendored

// WITH_RUNTIME
package test
class A internal constructor(a: Int = 0) {
internal fun internalFunction(b: String = "") {}
@JvmName("internalJvmNameFunction")
internal fun f(c: String = "") {}
public fun publicFunction(d: String = "") {}
}