Refactoring: make "replace get or set" an inspection
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// PROBLEM: none
|
||||
// ERROR: 'operator' modifier is inapplicable on this function: must have at least 2 value parameters
|
||||
|
||||
class C {
|
||||
operator fun set(){}
|
||||
}
|
||||
|
||||
class D(val c: C) {
|
||||
fun foo() {
|
||||
this.c.<caret>set()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user