Fix for KT-12908: Variable initialization in loop causes VerifyError bad local variable type

#KT-12908 Fixed
This commit is contained in:
Michael Bogdanov
2016-07-08 18:06:10 +03:00
parent 00d651711a
commit 486aa5675f
4 changed files with 60 additions and 2 deletions
@@ -3673,6 +3673,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt12908.kt")
public void testKt12908() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt12908.kt");
doTest(fileName);
}
@TestMetadata("kt12908_2.kt")
public void testKt12908_2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt12908_2.kt");
doTest(fileName);
}
@TestMetadata("kt1441.kt")
public void testKt1441() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt1441.kt");