mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
Also do not attempt to match any of the arguments in the brackets with the last parameter of the 'set' method #KT-10633 Fixed
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
|
|
}
|
|
}
|