Files
kotlin-fork/compiler/testData/codegen/box/labels/infixCallLabelling.kt
T
2019-11-19 11:00:09 +03:00

25 lines
297 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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"
}