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