Fix for KT-17588: Compiler error while optimizer tries to get rid of captured variable

#KT-17588 Fixed
This commit is contained in:
Mikhael Bogdanov
2017-04-25 14:46:25 +02:00
parent 6e8406f73c
commit b9409523b0
6 changed files with 55 additions and 1 deletions
@@ -3865,6 +3865,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt17588.kt")
public void testKt17588() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt17588.kt");
doTest(fileName);
}
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");