IDEA-182501 Unwrap 'if' generates unreachable code

This commit is contained in:
peter
2018-01-03 21:47:57 +01:00
parent e133d0ff51
commit 41d78cd086
4 changed files with 20 additions and 3 deletions
@@ -0,0 +1,7 @@
// "Unwrap 'if' statement" "true"
class X {
void f(){
while (true) {
continue;//comment
}
}}
@@ -0,0 +1,10 @@
// "Unwrap 'if' statement" "true"
class X {
void f(){
while (true) {
if (tr<caret>ue) {
continue;//comment
}
System.out.println();
}
}}