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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user