J2K adds "operator" modifier to methods that look like operator on conversion
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user