Split up Result API boxing tests
This commit is contained in:
committed by
Alexander Udalov
parent
2e53e36fd5
commit
49efa5fbc4
+16
@@ -0,0 +1,16 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
// FILE: test.kt
|
||||
fun test() {
|
||||
val ans1 = runCatching { 42 }
|
||||
println(ans1)
|
||||
|
||||
val ans2 = 42.runCatching { this }
|
||||
println(ans2)
|
||||
}
|
||||
|
||||
// @TestKt.class:
|
||||
// 0 INVOKESTATIC kotlin/Result.box-impl
|
||||
// 0 INVOKEVIRTUAL kotlin/Result.unbox-impl
|
||||
// 0 Result\$Failure
|
||||
Reference in New Issue
Block a user