diff options
author | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2016-06-13 18:36:58 +0200 |
---|---|---|
committer | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2016-06-13 19:05:12 +0200 |
commit | 784d82dc1a709c4c262665a4cd4eb0b1bd1487a0 (patch) | |
tree | 6118a94711820d6671dbc7c65cee4e177e71fe48 /library/lib.ml | |
parent | bb43103f7ecea16e634d448215f24d6d55d56eb1 (diff) |
Univs: fix for part #2 of bug #4816.
Check that the polymorphic status of everything that
is parameterized in nested sections is coherent.
Diffstat (limited to 'library/lib.ml')
-rw-r--r-- | library/lib.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/lib.ml b/library/lib.ml index e4617cafb..f6b4a2458 100644 --- a/library/lib.ml +++ b/library/lib.ml @@ -417,7 +417,7 @@ let add_section_variable id impl poly ctx = match !sectab with | [] -> () (* because (Co-)Fixpoint temporarily uses local vars *) | (vars,repl,abs)::sl -> - check_same_poly poly vars; + List.iter (fun tab -> check_same_poly poly (pi1 tab)) !sectab; sectab := (Variable (id,impl,poly,ctx)::vars,repl,abs)::sl let add_section_context ctx = |