Java: Minor additional type pruning.

This commit is contained in:
Anders Schack-Mulligen
2019-09-23 11:07:10 +02:00
parent 42a970b905
commit f8f3a4b25f

View File

@@ -332,7 +332,8 @@ private module ImplCommon {
exists(Node mid1, Node mid2, Content f |
store(node1, f, mid1) and
localValueStep*(mid1, mid2) and
read(mid2, f, node2)
read(mid2, f, node2) and
compatibleTypes(node1.getTypeBound(), node2.getTypeBound())
)
}