Minor: add test for obsolete issue
#KT-8050 Obsolete
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
private class X
|
||||
|
||||
private operator fun X?.plus(<!UNUSED_PARAMETER!>p<!>: Int) = X()
|
||||
|
||||
class C {
|
||||
private val map = hashMapOf<String, X>()
|
||||
|
||||
fun f() {
|
||||
map<!NO_SET_METHOD!>[""]<!> += 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package
|
||||
|
||||
private operator fun X?.plus(/*0*/ p: kotlin.Int): X
|
||||
|
||||
public final class C {
|
||||
public constructor C()
|
||||
private final val map: kotlin.collections.HashMap<kotlin.String, X> /* = java.util.HashMap<kotlin.String, X> */
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun f(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
private final class X {
|
||||
public constructor X()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user