Skip to content
Snippets Groups Projects
Commit 5d4d87b1 authored by hansen's avatar hansen
Browse files

Fixed bug in typechecker

parent ee86fcc0
Branches
Tags
No related merge requests found
...@@ -101,6 +101,9 @@ public class TypeChecker extends BuiltInOPs implements IType, ASTConstants, ...@@ -101,6 +101,9 @@ public class TypeChecker extends BuiltInOPs implements IType, ASTConstants,
&& constantAssignments.containsKey(con)) { && constantAssignments.containsKey(con)) {
TLAType t = constantAssignments.get(con).getType(); TLAType t = constantAssignments.get(con).getType();
con.setToolObject(TYPE_ID, t); con.setToolObject(TYPE_ID, t);
if(t instanceof AbstractHasFollowers){
((AbstractHasFollowers) t).addFollower(con);
}
} else { } else {
Untyped u = new Untyped(); Untyped u = new Untyped();
con.setToolObject(TYPE_ID, u); con.setToolObject(TYPE_ID, u);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment