Files
kotlin-fork/idea/testData/intentions/conventionNameCalls/replaceContains/unacceptableVararg2.kt
T

10 lines
284 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>(0, 1)
}