// !DIAGNOSTICS: -UNUSED_PARAMETER class A { operator fun plus(x: T): A = this operator fun set(x: Int, y: T) {} operator fun get(x: T) = 1 } fun test(a: A) { a + "" a[1] = "" a[""] }