Fixed: #2276 Protected namespaces do not use fully qualified names

This commit is contained in:
Jindra Petřík
2024-08-13 21:36:50 +02:00
parent e499fc57a1
commit 00535350bb
11 changed files with 371 additions and 331 deletions

View File

@@ -61,6 +61,7 @@ package
TestForInReturn;
TestForInSwitch;
TestForXml;
TestGetProtected;
TestGotos;
TestGotos2;
TestGotos3;

View File

@@ -0,0 +1,21 @@
package tests
{
public class TestGetProtected
{
protected var attr:int = 5;
public function run():*
{
var c:InnerClass = new InnerClass();
c.attr = 2;
var a = attr;
trace(a);
}
}
}
class InnerClass
{
public var attr:int = 1;
}