Move tailrecPhase before defaultArgumentStubPhase
So that default values can be copied to the recursive call sites.
This commit is contained in:
committed by
max-kammerer
parent
6addb24e4b
commit
bdcd6f73b1
+15
@@ -9851,11 +9851,26 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultArgs2.kt")
|
||||
public void testDefaultArgs2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgs2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultArgsOverridden.kt")
|
||||
public void testDefaultArgsOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultArgsWithSideEffects.kt")
|
||||
public void testDefaultArgsWithSideEffects() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsWithSideEffects.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultArgsWithSideEffects2.kt")
|
||||
public void testDefaultArgsWithSideEffects2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/defaultArgsWithSideEffects2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionTailCall.kt")
|
||||
public void testExtensionTailCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/extensionTailCall.kt");
|
||||
|
||||
Reference in New Issue
Block a user