IC Mangling: Do not mangle functions with inline classes from Java
in old JVM BE. Map types to boxed variants, when mapping signatures. #KT-26445
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
// LANGUAGE: +InlineClasses
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
// FILE: WithInlineClass.java
|
||||
|
||||
import kotlin.UInt;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class WithInlineClass {
|
||||
private static UInt UINT = null;
|
||||
|
||||
public static void acceptsUInt(@NotNull UInt u) {
|
||||
UINT = u;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static UInt provideUInt() {
|
||||
return UINT;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: box.kt
|
||||
|
||||
fun box(): String {
|
||||
WithInlineClass.acceptsUInt(1u)
|
||||
val res = WithInlineClass.provideUInt()
|
||||
return if (res == 1u) "OK" else "FAIL $res"
|
||||
}
|
||||
Reference in New Issue
Block a user