mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
JVM IR: Fix mangling of @JvmStatic internal function in companion objects
This commit is contained in:
committed by
Alexander Udalov
parent
2d0445ebaa
commit
933440dc63
14
compiler/testData/codegen/bytecodeText/jvmStaticInternalMangling.kt
vendored
Normal file
14
compiler/testData/codegen/bytecodeText/jvmStaticInternalMangling.kt
vendored
Normal 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;
|
||||
Reference in New Issue
Block a user