fix(library/type_context): preprocess_class: always solve universe mvars in inout

This commit is contained in:
Sebastian Ullrich 2017-11-29 17:40:06 +01:00 committed by Leonardo de Moura
parent 4fdf452b17
commit 0ca9eb16c1
2 changed files with 9 additions and 1 deletions

View file

@ -3877,7 +3877,7 @@ For all these reasons, we have discarded this alternative design.
expr type_context::preprocess_class(expr const & type,
buffer<level_pair> & u_replacements,
buffer<expr_pair> & e_replacements) {
if (!has_expr_metavar(type))
if (!has_metavar(type))
return type;
type_context::tmp_locals locals(*this);
expr it = type;

View file

@ -0,0 +1,8 @@
section bug
variables (x y z : Type)
variables (f : x → y) (g : y → z)
variables (xy : set (x → y)) (yz : set (y → z)) (xz : set (x → z))
--#check f ∈ xy
--#check g ∈ yz
#check (g ∘ f) ∈ xz --error
end bug