doc(frontends/lean/elaborator): assert invariant in visit_app
This commit is contained in:
parent
cee9d6b092
commit
40471ca8e3
1 changed files with 3 additions and 2 deletions
|
@ -662,8 +662,9 @@ expr elaborator::visit_app(expr const & e, constraint_seq & cs) {
|
||||||
if (!expl) {
|
if (!expl) {
|
||||||
bool first = true;
|
bool first = true;
|
||||||
while (binding_info(f_type).is_strict_implicit() ||
|
while (binding_info(f_type).is_strict_implicit() ||
|
||||||
(!first && binding_info(f_type).is_implicit()) ||
|
binding_info(f_type).is_implicit() ||
|
||||||
(!first && binding_info(f_type).is_inst_implicit())) {
|
binding_info(f_type).is_inst_implicit()) {
|
||||||
|
lean_assert(binding_info(f_type).is_strict_implicit() || !first);
|
||||||
tag g = f.get_tag();
|
tag g = f.get_tag();
|
||||||
bool is_strict = true;
|
bool is_strict = true;
|
||||||
bool inst_imp = binding_info(f_type).is_inst_implicit();
|
bool inst_imp = binding_info(f_type).is_inst_implicit();
|
||||||
|
|
Loading…
Add table
Reference in a new issue