[FIR] Update backend tests with actual/expect in same module

- The fix for KT-55570 caused some backend tests to fail, because errors
  are now correctly reported for simple classes and actual/expect in
  the same module is not supported in FIR. See KT-55177.
- The commit also adds separate tests for K2. Unfortunately, these have
  to be disabled for K1 because K1 then reports "expect without actual"
  errors.
This commit is contained in:
Marco Pennekamp
2023-01-27 20:08:13 +01:00
committed by teamcity
parent d6cb75ca91
commit 9a693fa967
28 changed files with 333 additions and 70 deletions
@@ -5653,6 +5653,12 @@ public class K2NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt");
}
@Test
@TestMetadata("expectClassActualTypeAlias2.kt")
public void testExpectClassActualTypeAlias2() throws Exception {
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias2.kt");
}
@Test
@TestMetadata("genericSetter.kt")
public void testGenericSetter() throws Exception {
@@ -26068,6 +26074,12 @@ public class K2NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/typeAlias.kt");
}
@Test
@TestMetadata("typeAlias2.kt")
public void testTypeAlias2() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/typeAlias2.kt");
}
@Test
@TestMetadata("withTypeParameter.kt")
public void testWithTypeParameter() throws Exception {
@@ -5593,6 +5593,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt");
}
@Test
@TestMetadata("expectClassActualTypeAlias2.kt")
public void testExpectClassActualTypeAlias2() throws Exception {
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias2.kt");
}
@Test
@TestMetadata("genericSetter.kt")
public void testGenericSetter() throws Exception {
@@ -25771,6 +25777,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/typeAlias.kt");
}
@Test
@TestMetadata("typeAlias2.kt")
public void testTypeAlias2() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/defaultArguments/typeAlias2.kt");
}
@Test
@TestMetadata("withTypeParameter.kt")
public void testWithTypeParameter() throws Exception {