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

Fixed bug in typechecker

parent ee86fcc0
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,9 @@ public class TypeChecker extends BuiltInOPs implements IType, ASTConstants,
&& constantAssignments.containsKey(con)) {
TLAType t = constantAssignments.get(con).getType();
con.setToolObject(TYPE_ID, t);
if(t instanceof AbstractHasFollowers){
((AbstractHasFollowers) t).addFollower(con);
}
} else {
Untyped u = new Untyped();
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