[JS IR] Fix default arguments in suspend functions

Don't forget to remap parameter references in default arg expressions

The issue originally discovered in kotlinx.coroutines tests.

 - add test
This commit is contained in:
Roman Artemev
2021-10-25 13:36:28 +03:00
committed by Space
parent 1d58fd159a
commit 9f52326d14
10 changed files with 105 additions and 6 deletions
@@ -7698,6 +7698,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/coroutines/simpleSuspendCallableReference.kt");
}
@TestMetadata("simpleWithDefaultValue.kt")
public void testSimpleWithDefaultValue() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/simpleWithDefaultValue.kt");
}
@TestMetadata("simpleWithHandleResult.kt")
public void testSimpleWithHandleResult() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt");