Skip to content

Commit 8031507

Browse files
authored
Merge pull request #22 from cwi-swat/fix/typechecker-glitch
Added two explicit types to avoid undesired behaviour of Rascal typechecker
2 parents d7f68a1 + 1b2f302 commit 8031507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/rascal/lang/php/analysis/cfg/BasicBlocks.rsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public CFG createBasicBlocks(CFG g) {
7474
FlowEdge getBlockEdge(CFGNode n1, CFGNode n2) {
7575
n1Exit = last(n1.nodes);
7676
n2Entry = head(n2.nodes);
77-
edges = { e | e <- g.edges, n1Exit.lab == e.from, n2Entry.lab == e.to };
77+
edges = { e | FlowEdge e <- g.edges, n1Exit.lab == e.from, n2Entry.lab == e.to };
7878
if (size(edges) > 1) {
79-
for (e <- edges)
79+
for (FlowEdge e <- edges)
8080
println("In <g.item>, found flow edge <e>");
8181
throw "We should not have multiple edges between the same nodes";
8282
}

0 commit comments

Comments
 (0)