mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-28 17:40:46 +00:00
AS1/2 negate operator, unary minus operator
This commit is contained in:
@@ -795,4 +795,14 @@ public class ActionScript2Test extends ActionStript2TestBase {
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void frame59_unaryOpTest() {
|
||||
compareSrc(59, "trace(\"unaryOpTest\");\r\n"
|
||||
+ "var a = 5;\r\n"
|
||||
+ "var c = ~a;\r\n"
|
||||
+ "var d = ~(a + c);\r\n"
|
||||
+ "var e = - c;\r\n"
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user