Skip to content

Commit

Permalink
Backport PR #12628: Fix debug printer for auctx in presence of Anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
Zimmi48 committed Jul 15, 2020
2 parents bcb5a41 + c946925 commit c948df5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/top_printers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ let ppnamedcontextval e =
let ppaucontext auctx =
let nas = AUContext.names auctx in
let prlev l = match Level.var_index l with
| Some n -> Name.print nas.(n)
| Some n -> (match nas.(n) with
| Anonymous -> prlev l
| Name id -> Id.print id)
| None -> prlev l
in
pp (pr_universe_context prlev (AUContext.repr auctx))
Expand Down

0 comments on commit c948df5

Please sign in to comment.