diff options
| author | Matthieu Sozeau | 2015-02-12 22:49:35 +0100 |
|---|---|---|
| committer | Matthieu Sozeau | 2015-02-12 22:49:35 +0100 |
| commit | 8c5bfa0f00b80979473bba26c1b9a1410667e032 (patch) | |
| tree | 0857ce7a25ff85adcaa168a43edfed61a38470e0 /tactics | |
| parent | 5c603ebd99e4e8e7abb8b2036a6ffac5b19f66cf (diff) | |
Univs: fix bug #4031: wrong folding of sigma in change.
Diffstat (limited to 'tactics')
| -rw-r--r-- | tactics/tactics.ml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml index a298bba978..04df3b8cda 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -569,8 +569,12 @@ let e_pf_change_decl (redfun : bool -> e_reduction_function) where (id,c,ty) env let sigma',ty' = redfun false env sigma ty in sigma', (id,None,ty') | Some b -> - let sigma',b' = if where != InHypTypeOnly then redfun true env sigma b else sigma, b in - let sigma',ty' = if where != InHypValueOnly then redfun false env sigma ty else sigma', ty in + let sigma',b' = + if where != InHypTypeOnly then redfun true env sigma b else sigma, b + in + let sigma',ty' = + if where != InHypValueOnly then redfun false env sigma' ty else sigma', ty + in sigma', (id,Some b',ty') let e_change_in_hyp redfun (id,where) = |
