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:
committed by
Mikhail Glukhikh
parent
9aaa952b39
commit
27c942a0ff
Vendored
+1
-1
@@ -14,5 +14,5 @@ fun useJ(j: J) {
|
||||
}
|
||||
|
||||
fun jj() {
|
||||
useJ({})
|
||||
<!INAPPLICABLE_CANDIDATE!>useJ<!>({})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user