K1/K2: add test data for KT-66356
This commit is contained in:
committed by
Space Team
parent
36b89f5e84
commit
2d755aabe7
+6
@@ -24384,6 +24384,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("BoxedInaccessibleGenericTypeUsedByDependencies.kt")
|
||||
public void testBoxedInaccessibleGenericTypeUsedByDependencies() {
|
||||
runTest("compiler/testData/diagnostics/tests/multimodule/BoxedInaccessibleGenericTypeUsedByDependencies.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dependencyModule.kt")
|
||||
public void testDependencyModule() {
|
||||
|
||||
+6
@@ -24390,6 +24390,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("BoxedInaccessibleGenericTypeUsedByDependencies.kt")
|
||||
public void testBoxedInaccessibleGenericTypeUsedByDependencies() {
|
||||
runTest("compiler/testData/diagnostics/tests/multimodule/BoxedInaccessibleGenericTypeUsedByDependencies.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dependencyModule.kt")
|
||||
public void testDependencyModule() {
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// MODULE: missing
|
||||
|
||||
class InaccessibleType<ITTP>
|
||||
|
||||
// MODULE: library(missing)
|
||||
|
||||
class Box<BTP>
|
||||
|
||||
fun produceBoxedInaccessibleType(): Box<InaccessibleType<Any?>> = Box()
|
||||
fun consumeBoxedInaccessibleType(arg: Box<InaccessibleType<Any?>>) {}
|
||||
|
||||
// MODULE: main(library)
|
||||
|
||||
fun test() {
|
||||
consumeBoxedInaccessibleType(<!ARGUMENT_TYPE_MISMATCH("Box<InaccessibleType<kotlin.Any?>>; Box<CapturedType(out ERROR CLASS: Inconsistent type: InaccessibleType<kotlin/Any?> (parameters.size = 0, arguments.size = 1))>")!>produceBoxedInaccessibleType()<!>)
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// MODULE: missing
|
||||
|
||||
class InaccessibleType<ITTP>
|
||||
|
||||
// MODULE: library(missing)
|
||||
|
||||
class Box<BTP>
|
||||
|
||||
fun produceBoxedInaccessibleType(): Box<InaccessibleType<Any?>> = Box()
|
||||
fun consumeBoxedInaccessibleType(arg: Box<InaccessibleType<Any?>>) {}
|
||||
|
||||
// MODULE: main(library)
|
||||
|
||||
fun test() {
|
||||
consumeBoxedInaccessibleType(produceBoxedInaccessibleType())
|
||||
}
|
||||
Generated
+6
@@ -24390,6 +24390,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("BoxedInaccessibleGenericTypeUsedByDependencies.kt")
|
||||
public void testBoxedInaccessibleGenericTypeUsedByDependencies() {
|
||||
runTest("compiler/testData/diagnostics/tests/multimodule/BoxedInaccessibleGenericTypeUsedByDependencies.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dependencyModule.kt")
|
||||
public void testDependencyModule() {
|
||||
|
||||
Reference in New Issue
Block a user