JVM_IR: Do not unbox Result parameter in Result methods
#KT-44140 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// IGNORE_BACKEND: WASM, JS_IR
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// FILE: result.kt
|
||||
|
||||
package kotlin
|
||||
|
||||
inline class Result(val value: Any?)
|
||||
|
||||
// FILE: box.kt
|
||||
|
||||
fun box(): String {
|
||||
return Result("OK").value as String
|
||||
}
|
||||
Reference in New Issue
Block a user