mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Don't mangled functions annotated with @JvmName.
Annotate 'Result.success' and 'Result.failure' with @JvmName and
@Suppress("INAPPLICABLE_JVM_NAME").
NB this would require bootstrap.
(cherry picked from commit 202bbdf8dd)
22 lines
428 B
Kotlin
Vendored
22 lines
428 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
inline class IC(val x: Int)
|
|
|
|
class C {
|
|
@Suppress("INAPPLICABLE_JVM_NAME")
|
|
@JvmName("test")
|
|
fun test() = IC(42)
|
|
|
|
@Suppress("INAPPLICABLE_JVM_NAME")
|
|
@JvmName("differentName")
|
|
fun test2() = IC(42)
|
|
}
|
|
|
|
fun call1() = C().test()
|
|
|
|
fun call2() = C().test2()
|
|
|
|
// 1 public final test\(\)I
|
|
// 1 INVOKEVIRTUAL C.test \(\)I
|
|
// 1 public final differentName\(\)I
|
|
// 1 INVOKEVIRTUAL C.differentName \(\)I
|