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
|
||||
}
|
||||
+5
@@ -99,6 +99,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/javaForKClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8050.kt")
|
||||
public void testKt8050() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/kt8050.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9078.kt")
|
||||
public void testKt9078() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/kt9078.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+5
@@ -99,6 +99,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/javaForKClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8050.kt")
|
||||
public void testKt8050() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/kt8050.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9078.kt")
|
||||
public void testKt9078() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/kt9078.kt");
|
||||
|
||||
Reference in New Issue
Block a user