Fix missed returned expression if the last expression was condition jump

See ticket comments for the detailed description

^KT-28061 Fixed
This commit is contained in:
Dmitry Savvinov
2018-11-12 15:19:32 +03:00
parent c9e87bf353
commit 500dc11514
2 changed files with 34 additions and 6 deletions
@@ -14,4 +14,4 @@ fun test(): String {
val x: String? = null
x?.myRun { return "" }
}
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>