fix: bug at ll_infer_type
This commit is contained in:
parent
7668750cb5
commit
ffc90f6a35
1 changed files with 4 additions and 0 deletions
|
|
@ -62,6 +62,10 @@ class ll_infer_type_fn {
|
|||
expr infer_cases(expr const & e) {
|
||||
buffer<expr> args;
|
||||
get_app_args(e, args);
|
||||
if (args.size() == 1) {
|
||||
// This can happen for empty types. That is, the only argument is the major premise.
|
||||
return mk_enf_object_type();
|
||||
}
|
||||
lean_assert(args.size() >= 2);
|
||||
bool first = true;
|
||||
expr r = *g_bot;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue