FIR: enforce the return type of function literals without body

Its return type should be Unit, so do not use the expected type from,
e.g., parameter type.
This commit is contained in:
Jinseong Jeon
2021-02-09 01:50:54 -08:00
committed by Mikhail Glukhikh
parent 9aaa952b39
commit 27c942a0ff
4 changed files with 15 additions and 8 deletions
@@ -14,5 +14,5 @@ fun useJ(j: J) {
}
fun jj() {
useJ({})
<!INAPPLICABLE_CANDIDATE!>useJ<!>({})
}