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,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"
}