[FIR2IR] Correctly map arguments of type alias constructor call

Previously, we applied type arguments as is when converting type alias
constructor calls to IR.
Now, we map them using the expansion of the type alias.

#KT-59743 Fixed
This commit is contained in:
Kirill Rakhman
2023-07-19 10:48:13 +02:00
committed by Space Team
parent b4335c86c8
commit e35a28d36d
16 changed files with 653 additions and 11 deletions
@@ -2904,6 +2904,12 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest
runTest("compiler/testData/ir/irText/firProblems/timesInBuilder.kt");
}
@Test
@TestMetadata("TypeAliasConstructorParameterMapping.kt")
public void testTypeAliasConstructorParameterMapping() throws Exception {
runTest("compiler/testData/ir/irText/firProblems/TypeAliasConstructorParameterMapping.kt");
}
@Test
@TestMetadata("TypeParameterBounds.kt")
public void testTypeParameterBounds() throws Exception {