[test] Add a test for KT-55318
This commit is contained in:
committed by
Space Team
parent
cebccee4be
commit
9c6f92d697
+6
@@ -28127,6 +28127,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55318.kt")
|
||||
public void testKt55318() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithLoop.kt")
|
||||
public void testLambdaWithLoop() throws Exception {
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
// IGNORE_BACKEND_K1: JS_IR, NATIVE
|
||||
// ISSUE: KT-55318
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
package repro
|
||||
|
||||
interface I<out InterfaceTP>
|
||||
|
||||
open class Super<SuperTP> {
|
||||
fun foo(i: I</*redundant*/out SuperTP>) {}
|
||||
}
|
||||
|
||||
class Sub<SubTP>: Super<SubTP>() {
|
||||
/* override fun foo(i: I<out SubTP>) */
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
|
||||
package repro
|
||||
|
||||
class User<UserTP> {
|
||||
val sub = Sub<UserTP>()
|
||||
fun foo(i: I<UserTP>) = sub.foo(i)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
+6
@@ -27197,6 +27197,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55318.kt")
|
||||
public void testKt55318() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithLoop.kt")
|
||||
public void testLambdaWithLoop() throws Exception {
|
||||
|
||||
+6
@@ -28127,6 +28127,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55318.kt")
|
||||
public void testKt55318() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithLoop.kt")
|
||||
public void testLambdaWithLoop() throws Exception {
|
||||
|
||||
+5
@@ -22932,6 +22932,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt55318.kt")
|
||||
public void testKt55318() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaWithLoop.kt")
|
||||
public void testLambdaWithLoop() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/lambdaWithLoop.kt");
|
||||
|
||||
+6
@@ -21031,6 +21031,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55318.kt")
|
||||
public void testKt55318() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithLoop.kt")
|
||||
public void testLambdaWithLoop() throws Exception {
|
||||
|
||||
+6
@@ -21049,6 +21049,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55318.kt")
|
||||
public void testKt55318() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithLoop.kt")
|
||||
public void testLambdaWithLoop() throws Exception {
|
||||
|
||||
+6
@@ -21049,6 +21049,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55318.kt")
|
||||
public void testKt55318() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithLoop.kt")
|
||||
public void testLambdaWithLoop() throws Exception {
|
||||
|
||||
+5
@@ -18685,6 +18685,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt55318.kt")
|
||||
public void testKt55318() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaWithLoop.kt")
|
||||
public void testLambdaWithLoop() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/lambdaWithLoop.kt");
|
||||
|
||||
+6
@@ -23766,6 +23766,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/ir/kt52677.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55318.kt")
|
||||
public void testKt55318() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ir/kt55318.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaWithLoop.kt")
|
||||
public void testLambdaWithLoop() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user