JVM_IR: Unbox argument of type kotlin.Result

if the argument has different type in parent: either generic or Any.
 #KT-41163 Fixed
 #KT-43536 Fixed
This commit is contained in:
Ilmir Usmanov
2020-12-09 12:23:02 +01:00
parent 775d610045
commit dccfb33bcc
4 changed files with 20 additions and 6 deletions
@@ -1,7 +1,5 @@
// !LANGUAGE: +InlineClasses
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
fun <T> foo(a: Result<T>): T = bar(a) {
it.getOrThrow()