For-loop range expression (collection) can not be null

This commit is contained in:
Andrey Breslav
2012-08-24 15:36:55 +04:00
parent b315bee7b2
commit 66faa0c03a
24 changed files with 39 additions and 60 deletions
@@ -874,6 +874,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.checkers.AbstractDiagnosticsTestWithEagerResolve", new File("compiler/testData/diagnostics/tests/controlStructures"), "kt", false);
}
@TestMetadata("forLoopWithNullableRange.kt")
public void testForLoopWithNullableRange() throws Exception {
doTest("compiler/testData/diagnostics/tests/controlStructures/forLoopWithNullableRange.kt");
}
@TestMetadata("ForWithoutBraces.kt")
public void testForWithoutBraces() throws Exception {
doTest("compiler/testData/diagnostics/tests/controlStructures/ForWithoutBraces.kt");