From f3db9d5424d411205c3fdde6d5b7ef11399de691 Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 7 Nov 2010 23:33:13 +0000 Subject: Add information of localisation when an error involving an "implicit types" occurs. Also improved the "unexpected type" error message. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13626 85f007b7-540e-0410-9357-904b9bb8a0f7 --- interp/reserve.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'interp/reserve.ml') diff --git a/interp/reserve.ml b/interp/reserve.ml index 3bcd6b1e7..2d36f2409 100644 --- a/interp/reserve.ml +++ b/interp/reserve.ml @@ -15,6 +15,7 @@ open Nameops open Summary open Libobject open Lib +open Topconstr let reserve_table = ref Idmap.empty @@ -81,7 +82,8 @@ let rec unloc = function let anonymize_if_reserved na t = match na with | Name id as na -> (try - if not !Flags.raw_print & unloc t = find_reserved_type id + if not !Flags.raw_print & + aconstr_of_rawconstr [] [] t = find_reserved_type id then RHole (dummy_loc,Evd.BinderType na) else t with Not_found -> t) -- cgit v1.2.3