enhance conditionals (#3643)

This commit is contained in:
Alex Lam S.L
2019-12-22 04:29:32 +00:00
committed by GitHub
parent 519a00bd8a
commit 75aa6ef848
5 changed files with 120 additions and 33 deletions

View File

@@ -33,10 +33,10 @@ unsafe_comps: {
}
expect: {
var obj1, obj2;
obj2 < obj1 ? g1() : f1();
obj1 < obj2 ? f2() : g2();
obj1 < obj2 ? g3() : f3();
obj2 < obj1 ? f4() : g4();
(obj2 < obj1 ? g1 : f1)();
(obj1 < obj2 ? f2 : g2)();
(obj1 < obj2 ? g3 : f3)();
(obj2 < obj1 ? f4 : g4)();
}
}