mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
add assert: respect initializer in ForStatement
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Assert 'container != null'" "true"
|
||||
class A{
|
||||
void test(){
|
||||
Integer container = null;
|
||||
assert container != null;
|
||||
for (int i = 0, limit = container.intValue(); i < limit; i++){}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Assert 'container != null'" "true"
|
||||
class A{
|
||||
void test(){
|
||||
Integer container = null;
|
||||
for (int i = 0, limit = con<caret>tainer.intValue(); i < limit; i++){}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user