Fixed #1892 AS3 - Package internal custom namespaces

This commit is contained in:
Jindra Petřík
2022-11-26 21:12:19 +01:00
parent e415945490
commit f24b132ae2
14 changed files with 53 additions and 12 deletions

View File

@@ -1,10 +1,15 @@
package tests
{
import tests_other.myInternal;
import tests_other.myInternal2;
public class TestNames
{
myInternal var neco:int;
myInternal var neco:int;
myInternal2 var neco:int;
var nic:int;
public function run():*
{
@@ -13,8 +18,10 @@ package tests
var a:* = ns::unnamespacedFunc();
var b:* = ns::[name];
trace(b.c);
var c:* = myInternal::neco;
}
var c:* = myInternal::neco;
use namespace myInternal2;
var d:* = neco;
}
public function getNamespace():Namespace
{
@@ -30,5 +37,10 @@ package tests
{
trace("hello");
}
myInternal2 function namespacedFunc2() : void
{
trace("hello");
}
}
}

View File

@@ -0,0 +1,4 @@
package tests_other
{
public namespace myInternal2;
}