[K/N] Fix default arguments in suspend functions

AddContinuationToFunctionsLowering was rewritten in way the order
of this lowering and defaults lowering doesn't matter.

^KT-58214
This commit is contained in:
Pavel Kunyavskiy
2023-04-28 16:08:06 +02:00
committed by Space Team
parent fa1b22cf31
commit af318fdfb0
17 changed files with 117 additions and 94 deletions
@@ -7036,15 +7036,15 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
}
@Test
@TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt");
@TestMetadata("defaultParameterLambdaInSuspend.kt")
public void testDefaultParameterLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParameterLambdaInSuspend.kt");
}
@Test
@TestMetadata("defaultParamterLambdaInSuspend.kt")
public void testDefaultParamterLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParamterLambdaInSuspend.kt");
@TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt");
}
@Test
@@ -7132,15 +7132,15 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
}
@Test
@TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt");
@TestMetadata("defaultParameterLambdaInSuspend.kt")
public void testDefaultParameterLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParameterLambdaInSuspend.kt");
}
@Test
@TestMetadata("defaultParamterLambdaInSuspend.kt")
public void testDefaultParamterLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParamterLambdaInSuspend.kt");
@TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt");
}
@Test
@@ -7132,15 +7132,15 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
}
@Test
@TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt");
@TestMetadata("defaultParameterLambdaInSuspend.kt")
public void testDefaultParameterLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParameterLambdaInSuspend.kt");
}
@Test
@TestMetadata("defaultParamterLambdaInSuspend.kt")
public void testDefaultParamterLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParamterLambdaInSuspend.kt");
@TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt");
}
@Test
@@ -7132,15 +7132,15 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
}
@Test
@TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt");
@TestMetadata("defaultParameterLambdaInSuspend.kt")
public void testDefaultParameterLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParameterLambdaInSuspend.kt");
}
@Test
@TestMetadata("defaultParamterLambdaInSuspend.kt")
public void testDefaultParamterLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParamterLambdaInSuspend.kt");
@TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt");
}
@Test