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());
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
amends "../snippetTest.pkl"
|
||||
|
||||
local class Animal
|
||||
|
||||
local class Person
|
||||
|
||||
facts {
|
||||
["List"] {
|
||||
List(1, 2, 3) is List<Int>
|
||||
@@ -16,6 +20,7 @@ facts {
|
||||
["Map"] {
|
||||
Map("Pigeon", 42, "Barn Owl", 21) is Map<String, Int>
|
||||
!(Map("Pigeon", 42, "Barn Owl", 21) is Map<Int, String>)
|
||||
!(Map("bob", new Listing { new Animal {} }) is Map<String, Listing<Person>>)
|
||||
}
|
||||
|
||||
["Listing"] {
|
||||
|
||||
@@ -12,6 +12,7 @@ facts {
|
||||
["Map"] {
|
||||
true
|
||||
true
|
||||
true
|
||||
}
|
||||
["Listing"] {
|
||||
true
|
||||
|
||||
Reference in new issue
Block a user