[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
@@ -26916,6 +26916,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealiasCoercion.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 {
@@ -27536,6 +27536,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealiasCoercion.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 {
@@ -26607,6 +26607,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealiasCoercion.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 {
@@ -26917,6 +26917,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealiasCoercion.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 {