Support automatic labeling for infix calls
#KT-8877 Fixed
This commit is contained in:
+17
@@ -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) {}
|
||||
Reference in New Issue
Block a user