mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-16 04:01:53 +00:00
35 lines
547 B
ActionScript
35 lines
547 B
ActionScript
package tests
|
|
{
|
|
import tests_other.myInternal;
|
|
|
|
public class TestNames
|
|
{
|
|
myInternal var neco:int;
|
|
|
|
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");
|
|
}
|
|
}
|
|
}
|