K1/K2: add test to confirm behavior of KT-63243
This commit is contained in:
committed by
Space Team
parent
b84aa190d7
commit
676e350b6f
+6
@@ -44902,6 +44902,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("intersectionOfPrimitiveBasedFunctions.kt")
|
||||||
|
public void testIntersectionOfPrimitiveBasedFunctions() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/intersectionOfPrimitiveBasedFunctions.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invalidFqName.kt")
|
@TestMetadata("invalidFqName.kt")
|
||||||
public void testInvalidFqName() throws Exception {
|
public void testInvalidFqName() throws Exception {
|
||||||
|
|||||||
+6
@@ -44902,6 +44902,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("intersectionOfPrimitiveBasedFunctions.kt")
|
||||||
|
public void testIntersectionOfPrimitiveBasedFunctions() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/intersectionOfPrimitiveBasedFunctions.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invalidFqName.kt")
|
@TestMetadata("invalidFqName.kt")
|
||||||
public void testInvalidFqName() throws Exception {
|
public void testInvalidFqName() throws Exception {
|
||||||
|
|||||||
+6
@@ -42762,6 +42762,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("intersectionOfPrimitiveBasedFunctions.kt")
|
||||||
|
public void testIntersectionOfPrimitiveBasedFunctions() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/intersectionOfPrimitiveBasedFunctions.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invalidFqName.kt")
|
@TestMetadata("invalidFqName.kt")
|
||||||
public void testInvalidFqName() throws Exception {
|
public void testInvalidFqName() throws Exception {
|
||||||
|
|||||||
+6
@@ -42882,6 +42882,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("intersectionOfPrimitiveBasedFunctions.kt")
|
||||||
|
public void testIntersectionOfPrimitiveBasedFunctions() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/intersectionOfPrimitiveBasedFunctions.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invalidFqName.kt")
|
@TestMetadata("invalidFqName.kt")
|
||||||
public void testInvalidFqName() throws Exception {
|
public void testInvalidFqName() throws Exception {
|
||||||
|
|||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
// FULL_JDK
|
||||||
|
// JVM_TARGET: 1.8
|
||||||
|
// ISSUE: KT-63243
|
||||||
|
|
||||||
|
abstract class MyMap<K : Any, V : Any> : AbstractMutableMap<K, V>()
|
||||||
|
|
||||||
|
interface II {
|
||||||
|
fun replace(key: Int, value: Int): Int? = null
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class ZI<!> : MyMap<Int, Int>(), II
|
||||||
|
|
||||||
|
interface IS {
|
||||||
|
fun replace(key: String, value: String): String? = null
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class ZS<!> : MyMap<String, String>(), IS
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
// FULL_JDK
|
||||||
|
// JVM_TARGET: 1.8
|
||||||
|
// ISSUE: KT-63243
|
||||||
|
|
||||||
|
abstract class MyMap<K : Any, V : Any> : AbstractMutableMap<K, V>()
|
||||||
|
|
||||||
|
interface II {
|
||||||
|
fun replace(key: Int, value: Int): Int? = null
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract class ZI : MyMap<Int, Int>(), II
|
||||||
|
|
||||||
|
interface IS {
|
||||||
|
fun replace(key: String, value: String): String? = null
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED, MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>class ZS<!> : MyMap<String, String>(), IS
|
||||||
Generated
+6
@@ -44960,6 +44960,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/customClassMutableList.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("intersectionOfPrimitiveBasedFunctions.kt")
|
||||||
|
public void testIntersectionOfPrimitiveBasedFunctions() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithStdLib/purelyImplementedCollection/intersectionOfPrimitiveBasedFunctions.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invalidFqName.kt")
|
@TestMetadata("invalidFqName.kt")
|
||||||
public void testInvalidFqName() throws Exception {
|
public void testInvalidFqName() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user