34e6459014
to the last parameter of the set operator function, even if there are missing or too many index arguments.
11 lines
203 B
Kotlin
Vendored
11 lines
203 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
class A {
|
|
operator fun get(x: Int) {}
|
|
operator fun set(x: String, value: Int) {}
|
|
|
|
fun d(x: Int) {
|
|
this["", <!TOO_MANY_ARGUMENTS!>1<!>] = 1
|
|
}
|
|
}
|