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

11 lines
204 B
Kotlin
Vendored

// PROBLEM: none
// ERROR: 'operator' modifier is inapplicable on this function: must be a member or an extension function
package p
operator fun get(s: String) = s
fun foo() {
p.<caret>get("x")
}