fix(compiler/simp_pr1_rec): typo
This commit is contained in:
parent
d86772e986
commit
7bf3e2ffbb
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class simp_pr1_rec_fn : public compiler_step_visitor {
|
|||
// Step 1.
|
||||
for (unsigned k = 0; k < minor_ctx.size(); k++) {
|
||||
if (minor_is_rec_arg[k]) {
|
||||
expr type = ctx().whnf(minor_ctx[k]);
|
||||
expr type = ctx().whnf(ctx().infer(minor_ctx[k]));
|
||||
buffer<expr> type_args;
|
||||
expr type_fn = get_app_args(type, type_args);
|
||||
if (!is_constant(type_fn) || const_name(type_fn) != get_prod_name() || type_args.size() != 2)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue