mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-25 11:25:53 +00:00
AS3 test methods separated to classes, Fixed AS3: get/set slot for global scope
This commit is contained in:
27
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestProperty.as
vendored
Normal file
27
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestProperty.as
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestProperty
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var d:* = new TestClass1();
|
||||
var k:* = 7 + 8;
|
||||
if (k == 15)
|
||||
{
|
||||
d.method(d.attrib * 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class TestClass1
|
||||
{
|
||||
public var attrib:int = 5;
|
||||
|
||||
public function method(i:int):int
|
||||
{
|
||||
trace("method");
|
||||
return 7;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user