aboutsummaryrefslogtreecommitdiff
path: root/contrib/correctness/psyntax.ml4
diff options
context:
space:
mode:
authorherbelin2001-11-20 15:35:22 +0000
committerherbelin2001-11-20 15:35:22 +0000
commit72c03f36e2e969992acf8e0398bbf7ae2c2c70b8 (patch)
tree58f880037a6b24d23b770b427f07b6d03d93a81f /contrib/correctness/psyntax.ml4
parent52c0bf0da05bcfce49ce5c8321e8b9ed7b3a1cb5 (diff)
Fusion de declare/add_constant, declare/add_parameter et add_discharged_constant
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2211 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/correctness/psyntax.ml4')
-rw-r--r--contrib/correctness/psyntax.ml46
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/correctness/psyntax.ml4 b/contrib/correctness/psyntax.ml4
index b85a50790f..77d2616532 100644
--- a/contrib/correctness/psyntax.ml4
+++ b/contrib/correctness/psyntax.ml4
@@ -546,9 +546,11 @@ let _ =
let ren = update empty_ren "" [] in
let v = Ptyping.cic_type_v env ren v in
if not (is_mutable v) then begin
- let c = trad_ml_type_v ren env v in
+ let c =
+ Safe_typing.ParameterEntry (trad_ml_type_v ren env v),
+ Declare.NeverDischarge in
List.iter
- (fun id -> ignore (Declare.declare_parameter id c)) ids;
+ (fun id -> ignore (Declare.declare_constant id c)) ids;
if_verbose (is_assumed false) ids
end;
if not (is_pure v) then begin