Disabled "Convert to get/set call" intention where it did not work correctly anyway
This commit is contained in:
@@ -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>[""]++
|
||||
}
|
||||
Reference in New Issue
Block a user