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