diff options
Diffstat (limited to 'kernel/reduction.ml')
| -rw-r--r-- | kernel/reduction.ml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/reduction.ml b/kernel/reduction.ml index 1a1ea5bbb4..0d4557efc6 100644 --- a/kernel/reduction.ml +++ b/kernel/reduction.ml @@ -310,9 +310,8 @@ let fold_commands cl env sigma c = let abstract_scheme env (locc,a,ta) t = let na = named_hd env ta Anonymous in - if occur_meta ta then - error "cannot find a type for the generalisation" - else if occur_meta a then + if occur_meta ta then error "cannot find a type for the generalisation"; + if occur_meta a then DOP2(Lambda,ta,DLAM(na,t)) else DOP2(Lambda, ta, DLAM(na,subst_term_occ locc a t)) |
