mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
19 lines
265 B
Kotlin
Vendored
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()
|