Files
kotlin-fork/idea/testData/intentions/conventionNameCalls/replaceContains/invalidArgument.kt
T
Stanislav Erokhin 85d9e96632 Partially support call with errors
Cases with no candidates or with Ambiguity is not supported yet
2021-05-11 12:48:17 +02:00

11 lines
330 B
Kotlin
Vendored

// IS_APPLICABLE: false
// ERROR: Cannot find a parameter with this name: c
// ERROR: 'operator' modifier is inapplicable on this function: must have a single value parameter
fun test() {
class Test{
operator fun contains(a: Int=1, b: Int=2): Boolean = true
}
val test = Test()
test.c<caret>ontains(c=3)
}