Files
kotlin-fork/idea/testData/inspectionsLocal/redundantElseInIf/redundant4.kt
T
2018-12-03 09:39:22 +03:00

17 lines
304 B
Kotlin
Vendored

// WITH_RUNTIME
class SomeException : RuntimeException()
fun foo(): Int = 1
fun bar(): Int = 2
fun test(x: Boolean, y: Boolean) {
if (x) {
return
} else if (y) {
throw SomeException()
} else<caret> {
// comment1
foo()
// comment2
bar()
}
}