improve AST_For.init & AST_Switch.expression compression (#2546)

This commit is contained in:
Alex Lam S.L
2017-12-01 12:53:59 +08:00
committed by GitHub
parent 09b320e8a5
commit f6610baaa8
4 changed files with 50 additions and 8 deletions

View File

@@ -817,3 +817,23 @@ issue_1758: {
}
expect_stdout: "0 3"
}
issue_2535: {
options = {
evaluate: true,
dead_code: true,
switches: true,
}
input: {
switch(w(), 42) {
case 13: x();
case 42: y();
default: z();
}
}
expect: {
w(), 42;
y();
z();
}
}