Implemented Operator To Function intention action.
Converts +a, --a, a * b, a..b, a %= b, a in b, etc. to their function call counterparts.
This commit is contained in:
committed by
Alexey Sedunov
parent
5550924dc5
commit
b3842285e8
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: false
|
||||
fun foo() {
|
||||
val bar = { (x: Int) -> x + 1 }
|
||||
val incremented = listOf(1, 2, 3).<caret>map(bar)
|
||||
}
|
||||
Reference in New Issue
Block a user