Files
kotlin-fork/compiler/testData/diagnostics/tests/labels/automaticLabelFromInfixOperator.kt
T
Mikhail Zarechenskiy 1fbd8f3f53 Support automatic labeling for infix calls
#KT-8877 Fixed
2017-04-17 16:21:03 +03:00

17 lines
266 B
Kotlin
Vendored

fun test(x: List<Int>): Int {
x myMap {
return@myMap
}
return 0
}
fun myMap(x: List<Int>): Int {
x myMap {
return<!LABEL_NAME_CLASH!>@myMap<!>
}
return 0
}
infix fun List<Int>.myMap(<!UNUSED_PARAMETER!>x<!>: () -> Unit) {}