Files
kotlin-fork/idea/testData/inspectionsLocal/controlFlowWithEmptyBody/while/blockHasStatement.kt
T
Toshiaki Kameyama 65f06454be Add "Control flow with empty body" inspection
#KT-30970 Fixed
2019-05-29 18:04:24 +07:00

9 lines
100 B
Kotlin
Vendored

// PROBLEM: none
fun test(i: Int) {
<caret>while (i == 1) {
foo()
}
}
fun foo() {}