JVM IR: Fix mangling of @JvmStatic internal function in companion objects

This commit is contained in:
Steven Schäfer
2020-05-18 16:22:18 +02:00
committed by Alexander Udalov
parent 2d0445ebaa
commit 933440dc63
4 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
class A {
companion object {
@JvmStatic
internal fun f(): String = "OK"
}
}
fun box(): String {
return A.f()
}
// Check the names of mangled functions
// 1 public final f\$test_module\(\)Ljava/lang/String;
// 1 public final static f\$test_module\(\)Ljava/lang/String;