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

9 lines
179 B
Plaintext
Vendored

// WITH_RUNTIME
class SomeException : RuntimeException()
fun foo(): Int = 1
fun test(x: Boolean, y: Boolean) {
if (x) throw SomeException()
else if (y) return
foo()
}