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

13 lines
230 B
Kotlin
Vendored

// 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()
}
}