fix(frontends/lean): another bug in sections with parameters

This commit is contained in:
Leonardo de Moura 2015-04-21 19:50:21 -07:00
parent 3df99e514b
commit fe9f4dd95f
2 changed files with 2 additions and 2 deletions

View file

@ -274,7 +274,7 @@ static void redeclare_aliases(parser & p,
list<pair<name, level>> old_level_entries,
list<pair<name, expr>> old_entries) {
environment const & env = p.env();
if (!in_context(env))
if (!in_context(env) && !in_section(env))
return;
list<pair<name, expr>> new_entries = p.get_local_entries();
buffer<pair<name, expr>> to_redeclare;

View file

@ -7,7 +7,7 @@ section
universe k
parameter A : Type
context
section
universe variable l
universe variable u
parameter B : Type