Support automatic labeling for infix calls

#KT-8877 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-04-10 17:17:21 +03:00
parent 6a352bccb6
commit 1fbd8f3f53
9 changed files with 81 additions and 1 deletions
@@ -0,0 +1,17 @@
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) {}