mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-08-04 23:42:00 +00:00
AS3 test methods separated to classes, Fixed AS3: get/set slot for global scope
This commit is contained in:
32
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestNames.as
vendored
Normal file
32
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestNames.as
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
package tests
|
||||
{
|
||||
import tests_other.myInternal;
|
||||
|
||||
public class TestNames
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var ns:* = this.getNamespace();
|
||||
var name:* = this.getName();
|
||||
var a:* = ns::unnamespacedFunc();
|
||||
var b:* = ns::[name];
|
||||
trace(b.c);
|
||||
var c:* = myInternal::neco;
|
||||
}
|
||||
|
||||
public function getNamespace():Namespace
|
||||
{
|
||||
return myInternal;
|
||||
}
|
||||
|
||||
public function getName():String
|
||||
{
|
||||
return "unnamespacedFunc";
|
||||
}
|
||||
|
||||
myInternal function namespacedFunc() : void
|
||||
{
|
||||
trace("hello");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user