aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parsing/g_vernacnew.ml43
-rw-r--r--translate/ppvernacnew.ml2
2 files changed, 2 insertions, 3 deletions
diff --git a/parsing/g_vernacnew.ml4 b/parsing/g_vernacnew.ml4
index 29985d8678..def78d92a2 100644
--- a/parsing/g_vernacnew.ml4
+++ b/parsing/g_vernacnew.ml4
@@ -93,9 +93,8 @@ GEXTEND Gram
gallina:
(* Definition, Theorem, Variable, Axiom, ... *)
- [ [ thm = thm_token; id = identref; (* bl = LIST0 binder; *) ":";
+ [ [ thm = thm_token; id = identref; bl = LIST0 binder_let; ":";
c = lconstr ->
- let bl = [] in
VernacStartTheoremProof (thm, id, (bl, c), false, (fun _ _ -> ()))
| (f,d) = def_token; id = identref; b = def_body ->
VernacDefinition (d, id, b, f)
diff --git a/translate/ppvernacnew.ml b/translate/ppvernacnew.ml
index f4dce4cf04..085dcccb10 100644
--- a/translate/ppvernacnew.ml
+++ b/translate/ppvernacnew.ml
@@ -622,7 +622,7 @@ let rec pr_vernac = function
hov 1 (pr_thm_token ki ++ spc() ++ pr_lident id ++ spc() ++
(match bl with
| [] -> mt()
- | _ -> error "Statements with local binders no longer supported")
+ | _ -> pr_binders bl ++ spc())
++ str":" ++ pr_spc_type (rename_bound_variables (snd id) c))
| VernacEndProof Admitted -> str"Admitted"
| VernacEndProof (Proved (opac,o)) -> (match o with