11 lines
328 B
Kotlin
Vendored
11 lines
328 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)
|
|
}
|