Fixed: AS3 direct editation - unary minus (negate) compiled as 0 - value

This commit is contained in:
Jindra Petřík
2021-02-24 19:55:59 +01:00
parent b03cad4f90
commit e414e1919d
9 changed files with 47 additions and 4 deletions
@@ -0,0 +1,18 @@
package tests_edit
{
/**
* ...
* @author JPEXS
*/
public class TestPropertyCoerce
{
private var attr:Number = 5;
public function run():void
{
this.attr = 10;
}
}
}
@@ -0,0 +1,19 @@
package tests_edit
{
/**
* ...
* @author JPEXS
*/
public class TestUnaryMinus
{
public function run(): void
{
var a:int = 5;
var b:int = 6;
var c:int = -a * b;
}
}
}