diff options
author | 2012-03-26 22:28:53 +0000 | |
---|---|---|
committer | 2012-03-26 22:28:53 +0000 | |
commit | 8f006cd0bde85c38c71c87abf749810871f1af4f (patch) | |
tree | ccf1ed57abae3ae500ad5dc872d08030609eaabb | |
parent | ad306872932e37425158e1950a5b7465d28b22f0 (diff) |
Fixing deactivation of scope at printing time in the body of a
lam or prod to be consistent with what is done at parsing time
(see coq-club on 25/3/2012).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15093 85f007b7-540e-0410-9357-904b9bb8a0f7
-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 9bcae183f..eeb96467c 100644 --- a/interp/constrextern.ml +++ b/interp/constrextern.ml @@ -803,7 +803,7 @@ and sub_extern inctx (_,scopes) = extern inctx (None,scopes) and factorize_prod scopes vars aty c = try if !Flags.raw_print or !print_no_symbol then raise No_match; - ([],extern_symbol scopes vars c (uninterp_notations c)) + ([],extern_symbol (Some Notation.type_scope,snd scopes) vars c (uninterp_notations c)) with No_match -> match c with | GProd (loc,(Name id as na),bk,ty,c) when same aty (extern_typ scopes vars (anonymize_if_reserved na ty)) @@ -815,7 +815,7 @@ and factorize_prod scopes vars aty c = and factorize_lambda inctx scopes vars aty c = try if !Flags.raw_print or !print_no_symbol then raise No_match; - ([],extern_symbol scopes vars c (uninterp_notations c)) + ([],extern_symbol (None,snd scopes) vars c (uninterp_notations c)) with No_match -> match c with | GLambda (loc,na,bk,ty,c) when same aty (extern_typ scopes vars (anonymize_if_reserved na ty)) |