mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-21 23:45:34 +00:00
Fixed #1892 AS3 - Package internal custom namespaces
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
libsrc/ffdec_lib/testdata/as3_new/src/tests_other/myInternal2.as
vendored
Normal file
4
libsrc/ffdec_lib/testdata/as3_new/src/tests_other/myInternal2.as
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
package tests_other
|
||||
{
|
||||
public namespace myInternal2;
|
||||
}
|
||||
Reference in New Issue
Block a user