FIR: fix return statement generation for Unit-returning lambdas...

for case then the expected return type is not Unit.
#KT-56747 fixed
This commit is contained in:
Ilya Chernikov
2023-03-20 11:59:23 +01:00
committed by Space Team
parent 505edb9746
commit aa3c189d83
5 changed files with 8 additions and 4 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_K2: JS_IR
// EXPECTED_REACHABLE_NODES: 1285
fun <T> rawReturnValue(fn: () -> T): Any {