Fixed AS3 - Resolving types on static protected namespaced properties

Fixed test data
This commit is contained in:
Jindra Petřík
2022-12-03 19:46:36 +01:00
parent 8388d6adf4
commit 933aa4c234
7 changed files with 11 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
- [#1884] Memory search - Logged exception when cannot get page range
- [#1884] Memory search - Exception on sorting by pid
- [#1006] AS3 - Warning - Function value used where type Boolean was expected
- AS3 - Resolving types on static protected namespaced properties
### Changed
- Quick search needs minimum of 3 characters

View File

@@ -171,7 +171,7 @@ public final class AbcIndexing {
}
int k = abc.constants.getNamespace(propNsIndex).kind;
if (k != Namespace.KIND_PACKAGE && propNsIndex != builtInIndex) {
if (k == Namespace.KIND_PROTECTED) {
if (k == Namespace.KIND_PROTECTED || k == Namespace.KIND_STATIC_PROTECTED) {
setProtected(abc, propNsIndex);
} else {
setPrivate(abc, propNsIndex);

View File

@@ -49,8 +49,11 @@ package tests
s = v.join("x");
i = int(v.join("x"));
i = int(prot);
s = prot;
i = prot;
s = String(prot);
i = sprot;
s = String(sprot);
s = String(getTimer());

View File

@@ -3,6 +3,8 @@ package tests_classes
public class TestConvertParent
{
protected var prot:String = "5";
}
protected var prot:int = 5;
protected static var sprot:int = 6;
}
}

View File

@@ -8,8 +8,6 @@ package tests_classes
internal var attr_inst_internal:int = 3;
protected var attr_inst_protected:int = 4;
explicit var attr_exp:int = 9;
private static var attr_stat_private:int = 5;
public static var attr_stat_public:int = 6;
internal static var attr_stat_internal:int = 7;