Definite returns extracted as a separate issue KT-281

This commit is contained in:
Andrey Breslav
2011-09-06 12:52:53 +04:00
parent 54e222c306
commit c02c507114
2 changed files with 4 additions and 18 deletions
@@ -115,20 +115,6 @@ fun blockReturnValueTypeMatch() : Int {
fun blockNoReturnIfValDeclaration(): Int {
<error>val x = 1</error>
}
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 2
}
}
}
val a = <error>return 1</error>
class A() {