Fixed Avoid Error Implicit coercion of a value of type XXX to an unrelated type YYY

This commit is contained in:
Jindra Petřík
2022-11-27 16:28:40 +01:00
parent a99df959bc
commit c26030620f
10 changed files with 77 additions and 5 deletions

View File

@@ -128,7 +128,7 @@ public class FullMultinameAVM2Item extends AVM2Item {
if (name instanceof IntegerValueAVM2Item) {
name.toString(writer, localData);
} else {
name.toStringString(writer, localData);
name.toString(writer, localData);
}
writer.append("]");
} else {

View File

@@ -54,7 +54,7 @@ public class NameValuePair extends AVM2Item {
if ((name instanceof ConvertAVM2Item) && ((ConvertAVM2Item)name).type.equals(TypeItem.STRING)) {
name = name.value;
}
name.toStringString(writer, localData);
name.toString(writer, localData);
if (needsParents) {
writer.append(")");
}