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

10 lines
173 B
Kotlin
Vendored

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