Skip to content
Snippets Groups Projects
Commit 9c520836 authored by hansen's avatar hansen
Browse files

Improved error message

parent ecf703eb
No related branches found
No related tags found
No related merge requests found
...@@ -172,8 +172,8 @@ public class TypeChecker extends BuiltInOPs implements ASTConstants, BBuildIns, ...@@ -172,8 +172,8 @@ public class TypeChecker extends BuiltInOPs implements ASTConstants, BBuildIns,
OpDeclNode var = vars[i]; OpDeclNode var = vars[i];
TLAType varType = (TLAType) var.getToolObject(TYPE_ID); TLAType varType = (TLAType) var.getToolObject(TYPE_ID);
if (varType.isUntyped()) { if (varType.isUntyped()) {
throw new TypeErrorException("Variable '" + var.getName() throw new TypeErrorException("The type of the variable '" + var.getName()
+ "' has no type!"); + "' can not be inferred: " + varType);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment