mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-15 12:12:22 +00:00
Fixed: Script/Class initializers order of assignment
Changed: Compound script has slot/const traits inside main script initializer
This commit is contained in:
43
libsrc/ffdec_lib/testdata/compound/src/compound.as
vendored
Normal file
43
libsrc/ffdec_lib/testdata/compound/src/compound.as
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
package {
|
||||
public function trace(s:int) {
|
||||
//print something
|
||||
}
|
||||
}
|
||||
|
||||
package mypkg {
|
||||
var x:int = 7;
|
||||
var a:int = 1;
|
||||
if (x >= 5) {
|
||||
a += 100;
|
||||
} else {
|
||||
a += 200;
|
||||
}
|
||||
var b:int = a + 10;
|
||||
}
|
||||
|
||||
package mypkg2 {
|
||||
var x:int = 7;
|
||||
var a:int = 1;
|
||||
if (x >= 5) {
|
||||
a += 100;
|
||||
} else {
|
||||
a += 200;
|
||||
}
|
||||
var b:int = a + 10;
|
||||
}
|
||||
|
||||
package mypkg3 {
|
||||
trace(29);
|
||||
}
|
||||
|
||||
include "mypkg/MyClass.as"
|
||||
include "mypkg/MyClass2.as"
|
||||
|
||||
var y:int = 1;
|
||||
var c:int = 1;
|
||||
if (y >= 5) {
|
||||
c += 100;
|
||||
} else {
|
||||
c += 100;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user