Add test on smartcast from while-assigned var

Currently behavior is undesired, it will be fixed in the next commit
(see KT-27084)
This commit is contained in:
Dmitry Savvinov
2018-09-24 18:36:49 +03:00
parent 056c61090d
commit 99454aa78d
4 changed files with 22 additions and 0 deletions
@@ -19916,6 +19916,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileNull.kt");
}
@TestMetadata("whileNullAssignToSomething.kt")
public void testWhileNullAssignToSomething() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileNullAssignToSomething.kt");
}
@TestMetadata("whileNullWithBreak.kt")
public void testWhileNullWithBreak() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/loops/whileNullWithBreak.kt");