JVM_IR: Implement name mangling exceptions for Result class.

This commit is contained in:
Steven Schäfer
2019-06-24 16:00:53 +02:00
committed by max-kammerer
parent d458e4a7b2
commit 078ccbf077
17 changed files with 75 additions and 19 deletions
@@ -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