6b2c87020b
Relates to #KT-35320
10 lines
217 B
Kotlin
Vendored
10 lines
217 B
Kotlin
Vendored
fun test(v: Boolean): (String) -> Int {
|
|
return when (v) {
|
|
true -> { { <caret>x -> taskOne(x) } }
|
|
false -> { x -> taskTwo(x) }
|
|
}
|
|
}
|
|
|
|
fun taskOne(s: String) = s.length
|
|
fun taskTwo(s: String) = 42
|