KT-57487: Add codegen test
Merge-request: KT-MR-9300 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
a2e2a96fd3
commit
9407ec35e3
+6
@@ -47113,6 +47113,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57487.kt")
|
||||
public void testKt57487() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5786_privateWithDefault.kt")
|
||||
public void testKt5786_privateWithDefault() throws Exception {
|
||||
|
||||
+6
@@ -47113,6 +47113,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57487.kt")
|
||||
public void testKt57487() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5786_privateWithDefault.kt")
|
||||
public void testKt5786_privateWithDefault() throws Exception {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// KT-57487: Stdlib ArraysTest fails with `Class found but error nodes are not allowed`
|
||||
// IGNORE_BACKEND_K2: NATIVE, JS_IR
|
||||
|
||||
// Minimized from libraries.stdlib.test.collections.ArraysTest.sortedTests()
|
||||
// Exception is: Class found but error nodes are not allowed
|
||||
fun <T: Comparable<T>> arrayData(vararg values: T, toArray: Array<T>.() -> Unit) {}
|
||||
fun box(): String {
|
||||
arrayData(42) { }
|
||||
return "OK"
|
||||
}
|
||||
+6
@@ -44767,6 +44767,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57487.kt")
|
||||
public void testKt57487() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5786_privateWithDefault.kt")
|
||||
public void testKt5786_privateWithDefault() throws Exception {
|
||||
|
||||
+6
@@ -47113,6 +47113,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57487.kt")
|
||||
public void testKt57487() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5786_privateWithDefault.kt")
|
||||
public void testKt5786_privateWithDefault() throws Exception {
|
||||
|
||||
+6
@@ -47113,6 +47113,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57487.kt")
|
||||
public void testKt57487() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5786_privateWithDefault.kt")
|
||||
public void testKt5786_privateWithDefault() throws Exception {
|
||||
|
||||
+5
@@ -36120,6 +36120,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/regressions/kt5445_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt57487.kt")
|
||||
public void testKt57487() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/regressions/kt57487.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5786_privateWithDefault.kt")
|
||||
public void testKt5786_privateWithDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/regressions/kt5786_privateWithDefault.kt");
|
||||
|
||||
Reference in New Issue
Block a user