mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 16:50:55 +00:00
Fixed: AS3 direct editation - unary minus (negate) compiled as 0 - value
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user