Substitute type arguments to return type of inlined function references

Such substitution is crucial on codegen stage if the return type is
reified (e.g. for `Array`)

^KT-59507: Fixed
^KT-59281: Fixed
This commit is contained in:
vladislav.grechko
2023-06-19 20:56:31 +02:00
committed by Space Team
parent f5a00c788a
commit e5763a692f
19 changed files with 113 additions and 4 deletions
@@ -1929,6 +1929,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/arrayOf.kt");
}
@Test
@TestMetadata("arrayOfNulls.kt")
public void testArrayOfNulls() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayOfNulls.kt");
}
@Test
@TestMetadata("callableReferenceOfCompanionConst.kt")
public void testCallableReferenceOfCompanionConst() throws Exception {
@@ -1929,6 +1929,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/arrayOf.kt");
}
@Test
@TestMetadata("arrayOfNulls.kt")
public void testArrayOfNulls() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayOfNulls.kt");
}
@Test
@TestMetadata("callableReferenceOfCompanionConst.kt")
public void testCallableReferenceOfCompanionConst() throws Exception {
@@ -1929,6 +1929,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/callableReference/arrayOf.kt");
}
@Test
@TestMetadata("arrayOfNulls.kt")
public void testArrayOfNulls() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/arrayOfNulls.kt");
}
@Test
@TestMetadata("callableReferenceOfCompanionConst.kt")
public void testCallableReferenceOfCompanionConst() throws Exception {