diff options
| author | herbelin | 2000-07-24 13:39:23 +0000 |
|---|---|---|
| committer | herbelin | 2000-07-24 13:39:23 +0000 |
| commit | 3afaf3dde673d77cacaabc354f008dfbe49a7cee (patch) | |
| tree | 4264164faf763ab8d18274cd5aeffe5a1de21728 /toplevel/record.ml | |
| parent | 83f038e61a4424fcf71aada9f97c91165b73aef8 (diff) | |
Passage à des contextes de vars et de rels pouvant contenir des déclarations
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@568 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/record.ml')
| -rw-r--r-- | toplevel/record.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toplevel/record.ml b/toplevel/record.ml index 268ebd437f..0fc6f85a8b 100644 --- a/toplevel/record.ml +++ b/toplevel/record.ml @@ -72,14 +72,14 @@ let typecheck_params_and_field ps fs = List.fold_left (fun (env,newps) (id,t) -> let tj = typed_type_of_com Evd.empty env t in - (Environ.push_var (id,tj) env,(id,body_of_type tj)::newps)) + (Environ.push_var_decl (id,tj) env,(id,body_of_type tj)::newps)) (env0,[]) ps in let env2,newfs = List.fold_left (fun (env,newfs) (id,t) -> let tj = typed_type_of_com Evd.empty env t in - (Environ.push_var (id,tj) env,(id,body_of_type tj)::newfs)) (env1,[]) fs + (Environ.push_var_decl (id,tj) env,(id,body_of_type tj)::newfs)) (env1,[]) fs in List.rev(newps),List.rev(newfs) |
