chore(library/type_context): error instead of assertion violation

This commit is contained in:
Leonardo de Moura 2019-03-19 11:24:23 -07:00
parent aa56578a29
commit 437f446844

View file

@ -633,8 +633,8 @@ optional<expr> type_context_old::reduce_projection(expr const & e) {
}
optional<expr> type_context_old::reduce_proj(expr const & /* e */) {
// TODO(Leo):
lean_unreachable();
// TODO(Leo)
throw exception("projection reduction is only implemented in the kernel.");
}
optional<expr> type_context_old::reduce_aux_recursor(expr const & e) {