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:
Jeremy Kaplan
2014-05-12 18:03:25 +04:00
committed by Alexey Sedunov
parent 5550924dc5
commit b3842285e8
45 changed files with 432 additions and 1 deletions
@@ -0,0 +1,8 @@
class Mocha() {
fun invoke(x: Int, y: String, f: (Int) -> String) {
}
}
fun main() {
val mocha = Mocha()
val testing = mocha<caret>(1, "fire"){ (x: Int) -> "hello world" }
}