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) {}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package
|
||||
|
||||
public fun myMap(/*0*/ x: kotlin.collections.List<kotlin.Int>): kotlin.Int
|
||||
public fun test(/*0*/ x: kotlin.collections.List<kotlin.Int>): kotlin.Int
|
||||
public infix fun kotlin.collections.List<kotlin.Int>.myMap(/*0*/ x: () -> kotlin.Unit): kotlin.Unit
|
||||
Reference in New Issue
Block a user