mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
15 lines
226 B
Kotlin
Vendored
15 lines
226 B
Kotlin
Vendored
fun f(a: Int): Int {
|
|
if (a < 5) {
|
|
run {
|
|
return 1
|
|
}
|
|
}
|
|
else {
|
|
<caret>return 2
|
|
}
|
|
}
|
|
|
|
inline public fun <T> run(f: () -> T): T { }
|
|
|
|
//HIGHLIGHTED: return 1
|
|
//HIGHLIGHTED: return 2 |