Fixed #2418 AS3 - initialization of class static vars in script initializer (Haxe)

This commit is contained in:
Jindra Petřík
2025-04-13 00:08:10 +02:00
parent c45eb35120
commit 58bd04698e
21 changed files with 197 additions and 87 deletions

View 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;
}
}