[FIR] Fix resolving of overload function with expect and common candidates

^KT-58896 Fixed
This commit is contained in:
Ivan Kochurkin
2023-08-29 18:35:55 +02:00
committed by Space Team
parent dc2deea04c
commit c8c25d8b98
19 changed files with 145 additions and 4 deletions
@@ -23935,6 +23935,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt");
}
@Test
@TestMetadata("expectAndCommonFunctionOverloads.kt")
public void testExpectAndCommonFunctionOverloads() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt");
}
@Test
@TestMetadata("expectInterfaceInSupertypes.kt")
public void testExpectInterfaceInSupertypes() throws Exception {
@@ -23935,6 +23935,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt");
}
@Test
@TestMetadata("expectAndCommonFunctionOverloads.kt")
public void testExpectAndCommonFunctionOverloads() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt");
}
@Test
@TestMetadata("expectInterfaceInSupertypes.kt")
public void testExpectInterfaceInSupertypes() throws Exception {
@@ -23935,6 +23935,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt");
}
@Test
@TestMetadata("expectAndCommonFunctionOverloads.kt")
public void testExpectAndCommonFunctionOverloads() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt");
}
@Test
@TestMetadata("expectInterfaceInSupertypes.kt")
public void testExpectInterfaceInSupertypes() throws Exception {
@@ -23935,6 +23935,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt");
}
@Test
@TestMetadata("expectAndCommonFunctionOverloads.kt")
public void testExpectAndCommonFunctionOverloads() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt");
}
@Test
@TestMetadata("expectInterfaceInSupertypes.kt")
public void testExpectInterfaceInSupertypes() throws Exception {