fix corner case in conditionals (#5548)

This commit is contained in:
Alex Lam S.L
2022-07-07 14:28:33 +01:00
committed by GitHub
parent 902292f776
commit b92a89f325
2 changed files with 19 additions and 1 deletions

View File

@@ -193,6 +193,22 @@ forbid_merge: {
}
}
merge_tail: {
options = {
conditionals: true,
}
input: {
if (console)
import "foo";
else
import "foo";
}
expect: {
console;
import "foo";
}
}
issue_4708_1: {
options = {
imports: true,