Skip to content

Commit

Permalink
typing.ml don't produce anomaly when bad relevance warning is AsError
Browse files Browse the repository at this point in the history
This was a mistaken squash of test commit
f508cfd AFAICT
  • Loading branch information
SkySkimmer committed Jun 10, 2024
1 parent f37ff96 commit 6eede2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pretyping/typing.ml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ let warn_bad_relevance_binder ?loc env sigma rlv bnd =
| CWarnings.Disabled | CWarnings.Enabled ->
CWarnings.warn bad_relevance_msg ?loc (env,sigma,Typeops.BadRelevanceBinder (rlv, bnd))
| CWarnings.AsError ->
CErrors.anomaly (CErrors.print (PretypeError (env, sigma, TypingError (Type_errors.BadBinderRelevance (rlv, bnd)))))
Loc.raise ?loc (PretypeError (env, sigma, TypingError (Type_errors.BadBinderRelevance (rlv, bnd))))

type relevance_preunify =
| Trivial
Expand Down

0 comments on commit 6eede2f

Please sign in to comment.