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

10 lines
208 B
Kotlin
Vendored

// PROBLEM: none
// ERROR: Cannot find a parameter with this name: c
fun test() {
class Test{
operator fun get(a: Int=1, b: Int=2) : Int = 0
}
val test = Test()
test.g<caret>et(c=3)
}