Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Nov 21, 2024
1 parent 9b9d5e4 commit a2ef2d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,8 @@ end = struct
| Impl(b,t1,t2) ->
D.mkApp (D.Global_symbols.(if b then implc else rimplc)) (todbl ctx t1) [todbl ctx t2]
| CData c -> D.mkCData (CData.hcons c)
| Spill(t,_) -> assert false (* spill handled before *)
| Spill(t,_) ->
anomaly ~loc:t.loc (Format.asprintf "todbl: term contains spill: %a" ScopedTerm.pretty t)
| Cast(t,_) -> todbl ctx t
(* lists *)
| Const(Global _,c) when F.(equal c nilf) -> D.mkNil
Expand Down

0 comments on commit a2ef2d8

Please sign in to comment.