11 lines
236 B
Kotlin
Vendored
11 lines
236 B
Kotlin
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()
|
|
} <caret>else return foo()
|
|
} |