aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorHugo Herbelin2019-12-05 20:57:01 +0100
committerHugo Herbelin2019-12-05 21:15:24 +0100
commiteff360695af18476bfca0edfdea467cbf9203984 (patch)
tree6382e3198ed0ba3bffbf1f038974d8bd59ca3dcb /plugins
parenteffbc03b9072ff94f96e54a5026ce04d7aa41bcc (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.mlg2
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