[FIR] Fix completion of FirDelegatedConstructorCall

Before this fix, changes that were made to the arguments list by calling
argumentList.transformArguments() were overriden by replaceArgumentList.
This fixes reverses the order in which these calls are made.
This also aligns the logic between the completion of qualified accesses
and delegated constructor calls.

#KT-59102 Fixed
This commit is contained in:
Kirill Rakhman
2023-06-12 12:01:15 +02:00
committed by Space Team
parent 267068546f
commit 4b85776405
14 changed files with 181 additions and 2 deletions
@@ -2045,6 +2045,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
runTest("compiler/testData/ir/irText/firProblems/kt55458.kt");
}
@TestMetadata("kt59102.kt")
public void testKt59102() throws Exception {
runTest("compiler/testData/ir/irText/firProblems/kt59102.kt");
}
@TestMetadata("lambdaInEnumEntryConstructorCall.kt")
public void testLambdaInEnumEntryConstructorCall() throws Exception {
runTest("compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt");