Fixed AS3 package level const with function value - separate P-code for trait and method

This commit is contained in:
Jindra Petřík
2022-12-23 17:02:50 +01:00
parent e78919d8a6
commit 3538adedbc
2 changed files with 5 additions and 0 deletions
@@ -634,6 +634,10 @@ public class DecompiledEditorPane extends DebuggableEditorPane implements CaretL
if (currentTrait != null) {
name += ":" + currentTrait.getName(abc).getName(abc.constants, null, false, true);
}
if (currentTrait instanceof TraitSlotConst) {
currentTrait = null;
}
}
displayMethod(pos, (int) tm.getProperties().index, name, currentTrait, lastTraitIndex, isStatic);