#1145 Correct precedence handling on binary operators

This commit is contained in:
Jindra Petřík
2016-02-16 23:07:00 +01:00
parent be8e4df4c7
commit b6b62b288f
2 changed files with 10 additions and 1 deletions

View File

@@ -1186,4 +1186,13 @@ public class ActionScript3Test extends ActionScriptTestBase {
+ "trace(String(this).length);\r\n", false);
}
@Test
public void testPrecedenceX() {
decompileMethod("testPrecedenceX", "var a:* = 5;\r\n"
+ "var b:* = 2;\r\n"
+ "var c:* = 3;\r\n"
+ "var d:* = a << (b >>> c);\r\n"
+ "var e:* = a << b >>> c;\r\n", false);
}
}