mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-24 03:55:38 +00:00
Compound assignments tests
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'08.03.2021'</value>
|
||||
<value>'12.03.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'08.03.2021'</value>
|
||||
<value>'13.03.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -11,37 +11,38 @@ package tests
|
||||
|
||||
public function run():void
|
||||
{
|
||||
/*var b:* = [10,20,30];
|
||||
var b:* = [10,20,30];
|
||||
|
||||
var a:int = 0;
|
||||
trace("a += 5");
|
||||
a += 5;
|
||||
|
||||
|
||||
trace("arr[call()] = arr[call()] + 2;");
|
||||
b[calc()] = b[calc()] + 2;
|
||||
|
||||
var t:MyTest = new MyTest();
|
||||
trace("t.attr += 5");
|
||||
trace("t.attr *= 10");
|
||||
t.attr *= 10;
|
||||
|
||||
trace("attr += 5");
|
||||
trace("attr -= 5");
|
||||
attr -= 5;
|
||||
|
||||
trace("arr[2] += 5");
|
||||
b[2] += 5;
|
||||
|
||||
trace("arr[call()] += 5");
|
||||
trace("arr[call()] /= 5");
|
||||
b[calc()] /= 5;
|
||||
|
||||
trace("arr[call()][call()] &= 10;");
|
||||
b[calc()][calc()] &= 10;
|
||||
|
||||
//to trigger slot usage
|
||||
try{
|
||||
trace("in try");
|
||||
}catch (e:Error){
|
||||
trace(e.message);
|
||||
} */
|
||||
var a:int = 0;
|
||||
trace(a += 10);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user