Move tailrecPhase before defaultArgumentStubPhase

So that default values can be copied to the recursive call sites.
This commit is contained in:
Ting-Yuan Huang
2019-05-20 14:11:29 -07:00
committed by max-kammerer
parent 6addb24e4b
commit bdcd6f73b1
15 changed files with 193 additions and 2 deletions
@@ -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");