mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-19 13:18:24 +00:00
test fla/swfs
This commit is contained in:
@@ -21,6 +21,7 @@ package
|
||||
TestChainedAssignments;
|
||||
TestComplexExpressions;
|
||||
TestContinueLevels;
|
||||
TestCompoundAssignments;
|
||||
TestDecl2;
|
||||
TestDeclarations;
|
||||
TestDeobfuscation;
|
||||
|
||||
52
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestCompoundAssignments.as
vendored
Normal file
52
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestCompoundAssignments.as
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestCompoundAssignments
|
||||
{
|
||||
private var attr :int = 0;
|
||||
|
||||
public function calc():int{
|
||||
return 5;
|
||||
}
|
||||
|
||||
public function run():void
|
||||
{
|
||||
/*var b:* = [10,20,30];
|
||||
|
||||
var a:int = 0;
|
||||
trace("a += 5");
|
||||
a += 5;
|
||||
|
||||
|
||||
b[calc()] = b[calc()] + 2;
|
||||
|
||||
var t:MyTest = new MyTest();
|
||||
trace("t.attr += 5");
|
||||
t.attr *= 10;
|
||||
|
||||
trace("attr += 5");
|
||||
attr -= 5;
|
||||
|
||||
trace("arr[2] += 5");
|
||||
b[2] += 5;
|
||||
|
||||
trace("arr[call()] += 5");
|
||||
b[calc()] /= 5;
|
||||
|
||||
b[calc()][calc()] &= 10;
|
||||
|
||||
try{
|
||||
trace("in try");
|
||||
}catch (e:Error){
|
||||
trace(e.message);
|
||||
} */
|
||||
var a:int = 0;
|
||||
trace(a += 10);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class MyTest {
|
||||
public var attr:int = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user