Files
kotlin-fork/idea/testData/intentions/invertIfCondition/lastStatementNonUnitMethod.kt.after
T
2015-05-14 01:10:11 +03:00

11 lines
187 B
Plaintext
Vendored

// ERROR: A 'return' expression required in a function with a block body ('{...}')
fun foo(): Int {
val x = 2
<caret>if (x <= 1) {
} else {
bar()
}
}
fun bar(){}