K2: add various tests describing current KT-62554 / KT-63242 behavior

This commit is contained in:
Mikhail Glukhikh
2023-11-22 19:02:48 +01:00
committed by Space Team
parent 17a1871b83
commit 54d978ba86
47 changed files with 916 additions and 0 deletions
@@ -21944,6 +21944,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/j+k/integerNotNullable.kt");
}
@Test
@TestMetadata("intersectionWithJavaVoidNothing.kt")
public void testIntersectionWithJavaVoidNothing() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/intersectionWithJavaVoidNothing.kt");
}
@Test
@TestMetadata("invisiblePackagePrivateInheritedMember.kt")
public void testInvisiblePackagePrivateInheritedMember() throws Exception {
@@ -22698,6 +22704,54 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
public void testSpecializedMap() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/specializedMap.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution4.kt")
public void testTriangleWithFlexibleTypeAndSubstitution4() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution4.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNotNullType.kt")
public void testTriangleWithNotNullType() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithNotNullType.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithNullableType.kt");
}
}
@Nested
@@ -20192,6 +20192,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {
@@ -21944,6 +21944,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/j+k/integerNotNullable.kt");
}
@Test
@TestMetadata("intersectionWithJavaVoidNothing.kt")
public void testIntersectionWithJavaVoidNothing() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/intersectionWithJavaVoidNothing.kt");
}
@Test
@TestMetadata("invisiblePackagePrivateInheritedMember.kt")
public void testInvisiblePackagePrivateInheritedMember() throws Exception {
@@ -22698,6 +22704,54 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
public void testSpecializedMap() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/specializedMap.kt");
}
@Test
@TestMetadata("triangleWithFlexibleType.kt")
public void testTriangleWithFlexibleType() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleType.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution.kt")
public void testTriangleWithFlexibleTypeAndSubstitution() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution2.kt")
public void testTriangleWithFlexibleTypeAndSubstitution2() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution2.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution3.kt")
public void testTriangleWithFlexibleTypeAndSubstitution3() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution3.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution4.kt")
public void testTriangleWithFlexibleTypeAndSubstitution4() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution4.kt");
}
@Test
@TestMetadata("triangleWithFlexibleTypeAndSubstitution5.kt")
public void testTriangleWithFlexibleTypeAndSubstitution5() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithFlexibleTypeAndSubstitution5.kt");
}
@Test
@TestMetadata("triangleWithNotNullType.kt")
public void testTriangleWithNotNullType() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithNotNullType.kt");
}
@Test
@TestMetadata("triangleWithNullableType.kt")
public void testTriangleWithNullableType() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/primitiveOverrides/triangleWithNullableType.kt");
}
}
@Nested
@@ -20192,6 +20192,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
runTest("compiler/testData/codegen/box/fir/notFoundClasses.kt");
}
@Test
@TestMetadata("primitiveDoubleJavaKotlinIntersection.kt")
public void testPrimitiveDoubleJavaKotlinIntersection() throws Exception {
runTest("compiler/testData/codegen/box/fir/primitiveDoubleJavaKotlinIntersection.kt");
}
@Test
@TestMetadata("publicMethodCallViaPackagePrivateCommon.kt")
public void testPublicMethodCallViaPackagePrivateCommon() throws Exception {