Skip to content
Permalink
Browse files

Outputs additional info for left expr error.

  • Loading branch information...
AZHenley committed May 1, 2019
1 parent cb63aca commit b2ed54051e313889be015da75fd80e0120e5c1f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 typechecker/typechecker.go
@@ -138,7 +138,7 @@ func typecheck(node *ast.Node) {
} else if child.Type == ast.LEFTEXPR {
only := getType(&child.Children[0])
if !compareTypes(only, typeVOID) {
abortMsg("Expression must be of void type.")
abortMsg("Expression must be of void type. " + only.fullName)
}
} else {
typecheck(&child)

0 comments on commit b2ed540

Please sign in to comment.
You can’t perform that action at this time.