diff options
| author | Hugo Herbelin | 2019-12-05 20:57:01 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2019-12-05 21:15:24 +0100 |
| commit | eff360695af18476bfca0edfdea467cbf9203984 (patch) | |
| tree | 6382e3198ed0ba3bffbf1f038974d8bd59ca3dcb /plugins | |
| parent | effbc03b9072ff94f96e54a5026ce04d7aa41bcc (diff) | |
Unfortunate bug with "cofix with": case of a CProdN over no bindings.
Failing on CProdN([],...) was maybe a bit too radical.
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/ltac/g_tactic.mlg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ltac/g_tactic.mlg b/plugins/ltac/g_tactic.mlg index d82eadcfc7..f0d6258cd1 100644 --- a/plugins/ltac/g_tactic.mlg +++ b/plugins/ltac/g_tactic.mlg @@ -135,7 +135,7 @@ let mk_cofix_tac (loc,id,bl,ann,ty) = ~hdr:"Constr:mk_cofix_tac" (Pp.str"Annotation forbidden in cofix expression.")) ann in let bl = List.map (fun (nal,bk,t) -> CLocalAssum (nal,bk,t)) bl in - (id,CAst.make ~loc @@ CProdN(bl,ty)) + (id,if bl = [] then ty else CAst.make ~loc @@ CProdN(bl,ty)) (* Functions overloaded by quotifier *) let destruction_arg_of_constr (c,lbind as clbind) = match lbind with |
