JVM_IR: Implement name mangling exceptions for Result class.
This commit is contained in:
committed by
max-kammerer
parent
d458e4a7b2
commit
078ccbf077
@@ -0,0 +1,14 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// WITH_RUNTIME
|
||||
// FILE: test.kt
|
||||
inline class A(val s: String) {
|
||||
fun fromResult(x: Result<String>) =
|
||||
x.getOrNull() ?: s
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return A("Fail").fromResult(Result.success("OK"))
|
||||
}
|
||||
|
||||
// @TestKt.class:
|
||||
// 1 INVOKESTATIC A.fromResult
|
||||
Reference in New Issue
Block a user