Disabled "Convert to get/set call" intention where it did not work correctly anyway

This commit is contained in:
Valentin Kipyatkov
2015-10-20 18:26:57 +03:00
parent c6978d6b69
commit a3d9085ddd
6 changed files with 58 additions and 0 deletions
@@ -0,0 +1,9 @@
// IS_APPLICABLE: false
interface C {
operator fun get(p: String): Int
operator fun set(p: String, value: Int)
}
fun foo(c: C) {
c<caret>[""] += 10
}
@@ -0,0 +1,8 @@
// WITH_RUNTIME
interface C {
operator fun get(p: String): MutableList<Int>
}
fun foo(c: C) {
c<caret>[""] += 10
}
@@ -0,0 +1,8 @@
// WITH_RUNTIME
interface C {
operator fun get(p: String): MutableList<Int>
}
fun foo(c: C) {
c.get("") += 10
}
@@ -0,0 +1,9 @@
// IS_APPLICABLE: false
interface C {
operator fun get(p: String): Int
operator fun set(p: String, value: Int)
}
fun foo(c: C) {
c<caret>[""]++
}