[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
@@ -8145,15 +8145,15 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
}
@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
@@ -8321,15 +8321,15 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
}
@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
@@ -7971,15 +7971,15 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
}
@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
@@ -8059,15 +8059,15 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
}
@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