mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
24 lines
267 B
Kotlin
Vendored
24 lines
267 B
Kotlin
Vendored
fun test(x: Int): Int {
|
|
x myMap {
|
|
return@myMap
|
|
}
|
|
|
|
return 0
|
|
}
|
|
|
|
fun myMap(x: Int): Int {
|
|
x myMap {
|
|
return@myMap
|
|
}
|
|
|
|
return 0
|
|
}
|
|
|
|
infix fun Int.myMap(x: () -> Unit) {}
|
|
|
|
fun box(): String {
|
|
test(0)
|
|
myMap(0)
|
|
|
|
return "OK"
|
|
} |