From 287d6f88b78634561fff65d32eeb501f12440df8 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Sun, 17 Aug 2014 17:18:09 +0200 Subject: Spotted a source of failure of the constr printer in debugger. --- interp/constrextern.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interp/constrextern.ml') diff --git a/interp/constrextern.ml b/interp/constrextern.ml index 94c0dd47d1..36fa81157a 100644 --- a/interp/constrextern.ml +++ b/interp/constrextern.ml @@ -438,7 +438,7 @@ let occur_name na aty = | Anonymous -> false let is_projection primproj nargs = function - | Some r when not !Flags.raw_print && !print_projections -> + | Some r when not !in_debugger && not !Flags.raw_print && !print_projections -> if primproj then Some 1 else (try @@ -495,7 +495,7 @@ let explicitize loc inctx impl (cf,primproj,f) args = | None -> let args = exprec 1 (args,impl) in match cf with - | Some (ConstRef p) when not primproj && Environ.is_projection p (Global.env ()) -> + | Some (ConstRef p) when not !in_debugger && not primproj && Environ.is_projection p (Global.env ()) -> (* Eta-expanded version of projection *) CApp (loc, (None, f), args) | _ -> if List.is_empty args then f else CApp (loc, (None, f), args) -- cgit v1.2.3