mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-05 09:14:50 +00:00
Fixed: #1188 AS3 Static initializer - init slot/const only when not referencing other property
This commit is contained in:
28
libsrc/ffdec_lib/testdata/as3_new/src/tests_classes/TestInitializer.as
vendored
Normal file
28
libsrc/ffdec_lib/testdata/as3_new/src/tests_classes/TestInitializer.as
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
package tests_classes
|
||||
{
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class TestInitializer
|
||||
{
|
||||
public static var s_alpha:RegExp = /[a-z]+/;
|
||||
public static var s_regs:Array;
|
||||
public static var s_numbers:RegExp = /[0-9]+/;
|
||||
|
||||
public var i_email:RegExp = /.*@.*\..*/
|
||||
public var i_link:RegExp = /<a href=".*">/;
|
||||
public var i_regs:Array = [i_email,i_link];
|
||||
|
||||
{
|
||||
s_regs = [s_alpha, s_numbers];
|
||||
}
|
||||
|
||||
public function TestInitializer()
|
||||
{
|
||||
trace(s_regs[1]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user