J2K adds "operator" modifier to methods that look like operator on conversion

This commit is contained in:
Valentin Kipyatkov
2015-10-16 23:32:02 +03:00
parent 563ad4bab2
commit 55575b7f10
4 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import java.util.HashMap
import kotlinApi.KotlinClass
internal class X {
fun get(index: Int): Int {
operator fun get(index: Int): Int {
return 0
}
}
@@ -14,7 +14,7 @@ internal class C {
}
fun foo(x: X): Int {
return x.get(0)
return x[0]
}
fun foo(kotlinClass: KotlinClass): Int {