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

12 lines
228 B
Plaintext
Vendored

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