FIR: pass the explicit expected type to block type
This helps avoid adding redundant return Unit into block.
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
0ea6b32c01
commit
4ab0897d7d
@@ -1,6 +1,6 @@
|
||||
val test1: Function0<Unit>
|
||||
field = local fun <anonymous>(): Int {
|
||||
return 42
|
||||
42 /*~> Unit */
|
||||
}
|
||||
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user