[NI] Fix determination of completion mode. #KT-30406 Fixed

This commit is contained in:
Dmitriy Novozhilov
2019-03-14 15:31:10 +03:00
parent 1c92c22dee
commit b07aed7a00
6 changed files with 54 additions and 2 deletions
@@ -24,7 +24,7 @@ fun foo(): String? {
run {
if (true) {
<!IMPLICIT_CAST_TO_ANY!>Obj()<!>
Obj()
} else
<!INVALID_IF_AS_EXPRESSION!>if<!> (true) return null // Error, coercion to Unit doesn't propagate inside nested lambdas
}