diff options
| author | Hugo Herbelin | 2014-08-17 17:18:09 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2014-08-18 18:56:38 +0200 |
| commit | 287d6f88b78634561fff65d32eeb501f12440df8 (patch) | |
| tree | ff63d43b35588feb2613ffd06905932bd8deed1d /interp | |
| parent | 5c82bcd1f87cc893319f2553c81a73c69b13b54d (diff) | |
Spotted a source of failure of the constr printer in debugger.
Diffstat (limited to 'interp')
| -rw-r--r-- | interp/constrextern.ml | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
