Skip to content

Commit

Permalink
Merge pull request #31 from SoftwareFoundationGroupAtKyotoU/feature/v…
Browse files Browse the repository at this point in the history
…ariable-names-are-also-displayed-in-variable-shadowing

Variable names are also displayed in variable shadowing
  • Loading branch information
artoy authored Mar 15, 2023
2 parents ab43ff8 + 5c31e25 commit c7f3094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simpleChecker.ml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ let init_tyenv fenv { name; args; _ } =

let add_var v t ctxt =
if StringMap.mem v ctxt.tyenv then
failwith "variable shadowing"
failwith ("variable shadowing: " ^ v)
else
{ ctxt with tyenv = StringMap.add v t ctxt.tyenv }

Expand Down

0 comments on commit c7f3094

Please sign in to comment.