Files
kotlin/compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetTooManyArgs.kt
2017-11-29 02:54:26 +03:00

12 lines
257 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER
class A {
operator fun get(x: Int) {}
operator fun set(x: String, value: Int) {}
fun d(x: Int) {
this["", <!OI;TOO_MANY_ARGUMENTS!>1<!>] = <!NI;TOO_MANY_ARGUMENTS!>1<!>
}
}