Fix eager typecheck of Map (#1654)

Closes #1653
This commit is contained in:
Daniel Chao authored and GitHub committed 2026-06-05 11:24:00 -07:00
1 parent 87ec8ee730
commit aa01241068
3 files changed
+7 -1

No files matched your search

@@ -1543,7 +1543,7 @@ public abstract class TypeNode extends PklNode {
if (skipEntryTypeChecks) return value;
for (var entry : value) {
keyTypeNode.executeEagerly(frame, VmUtils.getKey(entry));
valueTypeNode.executeLazily(frame, VmUtils.getValue(entry));
valueTypeNode.executeEagerly(frame, VmUtils.getValue(entry));
}
LoopNode.reportLoopCount(this, value.getLength());