aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2004-08-23 12:58:27 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2004-08-23 12:58:27 +0000
commite07c4d7d7545652ee0e5f2cd05c53b45f92e0df6 (patch)
tree22b06756e26a7186b2f9079e32d1dd5870fc7372 /interp
parent0b18e84d1fc34dd098dfff91e83d795ce41bb774 (diff)
Correction bug #830 : les noms des implicites temporaires étaient inconnus au moment de l'affichage
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6021 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp')
-rw-r--r--interp/constrintern.ml6
1 files changed, 5 insertions, 1 deletions
diff --git a/interp/constrintern.ml b/interp/constrintern.ml
index 22251aabb..326f8222e 100644
--- a/interp/constrintern.ml
+++ b/interp/constrintern.ml
@@ -630,6 +630,10 @@ let check_projection isproj nargs r =
| _, Some _ -> user_err_loc (loc_of_rawconstr r, "", str "Not a projection")
| _, None -> ()
+let get_implicit_name n imps =
+ if !Options.v7 then None
+ else Some (Impargs.name_of_implicit (List.nth imps (n-1)))
+
let set_hole_implicit i = function
| RRef (loc,r) -> (loc,ImplicitArg (r,i))
| RVar (loc,id) -> (loc,ImplicitArg (VarRef id,i))
@@ -982,7 +986,7 @@ let internalise sigma env allow_soapp lvar c =
(* with implicit arguments *)
[]
else
- RHole (set_hole_implicit n c) ::
+ RHole (set_hole_implicit (n,get_implicit_name n l) c) ::
aux (n+1) impl' subscopes' eargs rargs
end
| (imp::impl', a::rargs') ->