mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-29 16:50:46 +00:00
as3_new testdata compilers do not ignore warnings as3_new testdata without warnings
47 lines
884 B
ActionScript
47 lines
884 B
ActionScript
package tests
|
|
{
|
|
import tests_other.myInternal;
|
|
import tests_other.myInternal2;
|
|
|
|
|
|
|
|
public class TestNames
|
|
{
|
|
myInternal var neco:int;
|
|
myInternal2 var neco:int;
|
|
internal var nic: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;
|
|
use namespace myInternal2;
|
|
var d:* = neco;
|
|
}
|
|
|
|
public function getNamespace():Namespace
|
|
{
|
|
return myInternal;
|
|
}
|
|
|
|
public function getName():String
|
|
{
|
|
return "unnamespacedFunc";
|
|
}
|
|
|
|
myInternal function namespacedFunc() : void
|
|
{
|
|
trace("hello");
|
|
}
|
|
|
|
myInternal2 function namespacedFunc2() : void
|
|
{
|
|
trace("hello");
|
|
}
|
|
}
|
|
}
|