Refactoring: make "replace get or set" an inspection
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// PROBLEM: none
|
||||
|
||||
class C {
|
||||
operator fun set(s: String, value: Int): Boolean = true
|
||||
}
|
||||
|
||||
class D(val c: C) {
|
||||
fun foo(): Boolean {
|
||||
return this.c.<caret>set("x", 1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user