Files
kotlin/idea/testData/exitPoints/localFunctionThrow.kt

19 lines
265 B
Kotlin
Vendored

fun f(a: Int): Int {
fun localFun() {
if (a > 5) {
return
}
<caret>throw Error()
}
if (a < 5) {
return 1
}
else {
throw Exception()
}
}
//HIGHLIGHTED: return
//HIGHLIGHTED: throw Error()