Fixed #2077 AS3 colliding types in current package with trait names

This commit is contained in:
Jindra Petřík
2023-09-23 16:01:15 +02:00
parent b08856d3a5
commit 72b64f266d
12 changed files with 132 additions and 17 deletions

View File

@@ -530,4 +530,32 @@ public class ActionScript3ClassTest extends ActionScript3DecompileTestBase {
+ " }\n"
+ "}");
}
@Test
public void testCollidingTraitNames() {
decompileScriptPack("standard", "tests_classes.TestCollidingTraitNames", "package tests_classes\n"
+ "{\n"
+ " public class TestCollidingTraitNames extends CollidingAttributeParent\n"
+ " {\n"
+ " \n"
+ " \n"
+ " public var CollidingAttribute:tests_classes.CollidingAttribute;\n"
+ " \n"
+ " public function TestCollidingTraitNames()\n"
+ " {\n"
+ " super();\n"
+ " }\n"
+ " \n"
+ " public function test() : void\n"
+ " {\n"
+ " var t:tests_classes.CollidingAttribute2 = null;\n"
+ " }\n"
+ " \n"
+ " public function CollidingMethod() : void\n"
+ " {\n"
+ " var t:tests_classes.CollidingMethod = null;\n"
+ " }\n"
+ " }\n"
+ "}");
}
}