KT-281 fixed

This commit is contained in:
svtk
2011-09-07 12:23:24 +04:00
parent af38e0d41a
commit 2f4377d7c0
5 changed files with 96 additions and 85 deletions
@@ -148,3 +148,18 @@ fun f(): Int {
}
fun f(): Int = if (1 < 2) 1 else returnNothing()
fun blockNoReturnIfEmptyIf(): Int {
if (1 < 2) <error>{}</error> else <error>{}</error>
}
fun blockNoReturnIfUnitInOneBranch(): Int {
if (1 < 2) {
return 1
} else {
if (3 < 4) <error>{
}</error> else {
return 21
}
}
}