FIR: pass the explicit expected type to block type

This helps avoid adding redundant return Unit into block.
This commit is contained in:
Jinseong Jeon
2020-12-08 14:34:25 -08:00
committed by Dmitriy Novozhilov
parent 0ea6b32c01
commit 4ab0897d7d
7 changed files with 23 additions and 19 deletions
@@ -1,6 +1,6 @@
val test1: Function0<Unit>
field = local fun <anonymous>(): Int {
return 42
42 /*~> Unit */
}
get