Files
kotlin-fork/idea/testData/inspectionsLocal/conventionNameCalls/replaceGetOrSet/set2.kt.after
T
2017-12-26 18:39:47 +03:00

12 lines
210 B
Plaintext
Vendored

// FIX: Replace 'set' call with indexing operator
class C {
operator fun set(s: String, p: Int, value: Int): Boolean = true
}
class D(val c: C) {
fun foo() {
this.c<caret>["x", 2] = 1
}
}