mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-11 09:22:11 +00:00
Fixed #2418 AS3 - initialization of class static vars in script initializer (Haxe)
This commit is contained in:
9
libsrc/ffdec_lib/testdata/haxe/src/Main.hx
vendored
Normal file
9
libsrc/ffdec_lib/testdata/haxe/src/Main.hx
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import flash.display.Sprite;
|
||||
import flash.Lib;
|
||||
import tests_classes.TestStaticVars;
|
||||
|
||||
class Main extends Sprite {
|
||||
public static function main() {
|
||||
var obj = new TestStaticVars(10, 20);
|
||||
}
|
||||
}
|
||||
14
libsrc/ffdec_lib/testdata/haxe/src/tests_classes/TestStaticVars.hx
vendored
Normal file
14
libsrc/ffdec_lib/testdata/haxe/src/tests_classes/TestStaticVars.hx
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
package tests_classes;
|
||||
|
||||
class TestStaticVars {
|
||||
public var a:Int;
|
||||
public var b:Int;
|
||||
|
||||
public static var sa:Int = 1001;
|
||||
public static var sb:Int = 1002;
|
||||
|
||||
public function new(a:Int, b:Int) {
|
||||
this.a = a;
|
||||
this.b = b;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user