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

10 lines
236 B
Kotlin
Vendored

// PROBLEM: none
// ERROR: 'operator' modifier is inapplicable on this function: must have at least 1 value parameter
fun test() {
class Test{
operator fun get() : Int = 0
}
val test = Test()
test.g<caret>et()
}