Files
kotlin-fork/idea/testData/intentions/conventionNameCalls/replaceContains/unacceptableVararg1.kt
T
Stanislav Erokhin 080a832605 Fix argument mapping for lambda arguments and default arguments
Maybe for other elements ValueArgument itself used as SourceElement
2021-05-11 12:48:17 +02:00

10 lines
285 B
Kotlin
Vendored

// IS_APPLICABLE: false
// ERROR: 'operator' modifier is inapplicable on this function: must have a single value parameter
fun test() {
class Test{
operator fun contains(vararg b: Int, c: Int = 0): Boolean = true
}
val test = Test()
test.contains<caret>(c=5)
}