Fix for KT-12582: "VerifyError: Bad local variable type" caused by explicit loop variable type

#KT-12582 Fixed
This commit is contained in:
Mikhael Bogdanov
2016-06-02 11:21:30 +03:00
parent e7f9d3417f
commit a6cf169646
5 changed files with 98 additions and 21 deletions
@@ -10668,6 +10668,33 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
}
@TestMetadata("compiler/testData/codegen/box/ranges/nullableLoopParameter")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class NullableLoopParameter extends AbstractBlackBoxCodegenTest {
public void testAllFilesPresentInNullableLoopParameter() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/ranges/nullableLoopParameter"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("progressionExpression.kt")
public void testProgressionExpression() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/nullableLoopParameter/progressionExpression.kt");
doTest(fileName);
}
@TestMetadata("rangeExpression.kt")
public void testRangeExpression() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/nullableLoopParameter/rangeExpression.kt");
doTest(fileName);
}
@TestMetadata("rangeLiteral.kt")
public void testRangeLiteral() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/nullableLoopParameter/rangeLiteral.kt");
doTest(fileName);
}
}
}
@TestMetadata("compiler/testData/codegen/box/reflection")