Files
kotlin-fork/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt
T
2021-05-25 13:28:27 +03:00

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["", 1] = <!TOO_MANY_ARGUMENTS!>1<!>
}
}