Fixed #1937 AS3 - declarations vs null

This commit is contained in:
Jindra Petřík
2023-01-14 18:52:22 +01:00
parent 313b51cd8c
commit d5b1519d2f

View File

@@ -1789,7 +1789,8 @@ public class AVM2Code implements Cloneable {
boolean isNull = false;
if (vtype.equals(new TypeItem(DottedChain.NULL))) {
vtype = TypeItem.UNBOUNDED;
vtype = TypeItem.UNBOUNDED;
isNull = true;
}
if (declaredRegisters[reg] == null) {