K2: add tests for KT-58579 and for KT-64090 reproduction
This commit is contained in:
committed by
Space Team
parent
f45d92eebc
commit
d5b784805b
+12
@@ -31036,6 +31036,18 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromAnotherModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromSameModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromSameModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromSameModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt43217.kt")
|
||||
public void testKt43217() throws Exception {
|
||||
|
||||
+12
@@ -31036,6 +31036,18 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromAnotherModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromSameModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromSameModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromSameModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt43217.kt")
|
||||
public void testKt43217() throws Exception {
|
||||
|
||||
+12
@@ -30651,6 +30651,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromAnotherModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromSameModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromSameModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromSameModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt43217.kt")
|
||||
public void testKt43217() throws Exception {
|
||||
|
||||
+12
@@ -30651,6 +30651,18 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromAnotherModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromSameModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromSameModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromSameModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt43217.kt")
|
||||
public void testKt43217() throws Exception {
|
||||
|
||||
+12
@@ -30651,6 +30651,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromAnotherModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromSameModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromSameModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromSameModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt43217.kt")
|
||||
public void testKt43217() throws Exception {
|
||||
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// ISSUE: KT-64090
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: Invariant.java
|
||||
public class Invariant<T> {}
|
||||
|
||||
// FILE: Generic.java
|
||||
public class Generic<T> {
|
||||
public class Inner {}
|
||||
public static Invariant<? extends Generic.Inner> foo() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: Main.kt
|
||||
fun box(): String {
|
||||
val value = Generic.foo()
|
||||
value.bar()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun <T> T.bar() {}
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// ISSUE: KT-58579
|
||||
|
||||
// FILE: Invariant.java
|
||||
public class Invariant<T> {}
|
||||
|
||||
// FILE: Generic.java
|
||||
public class Generic<T> {
|
||||
public class Inner {}
|
||||
public static Invariant<? extends Generic.Inner> foo() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: Main.kt
|
||||
fun box(): String {
|
||||
val value = Generic.foo()
|
||||
value.bar()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun <T> T.bar() {}
|
||||
+12
@@ -30651,6 +30651,18 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromAnotherModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromSameModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromSameModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromSameModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt43217.kt")
|
||||
public void testKt43217() throws Exception {
|
||||
|
||||
+12
@@ -30651,6 +30651,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromAnotherModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromSameModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromSameModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromSameModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt43217.kt")
|
||||
public void testKt43217() throws Exception {
|
||||
|
||||
+12
@@ -30651,6 +30651,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromAnotherModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaTypeFromSameModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromSameModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromSameModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt43217.kt")
|
||||
public void testKt43217() throws Exception {
|
||||
|
||||
+10
@@ -25941,6 +25941,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaOuterClassDependsOnInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromAnotherModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromAnotherModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaTypeFromSameModuleWithRawTypedWildcardBound.kt")
|
||||
public void testJavaTypeFromSameModuleWithRawTypedWildcardBound() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/javaTypeFromSameModuleWithRawTypedWildcardBound.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt43217.kt")
|
||||
public void testKt43217() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaInterop/kt43217.kt");
|
||||
|
||||
Reference in New Issue
Block a user