feat(library/composition_manager): disable conversion optimization for automatically generated compositions

see issue #666
This commit is contained in:
Leonardo de Moura 2015-06-21 17:05:39 -07:00
parent bd0e9d958d
commit 430dc21a28

View file

@ -90,8 +90,9 @@ pair<environment, name> compose(environment const & env, type_checker & tc, name
}
ext.m_cache.insert(mk_pair(g, f), new_name);
bool use_conv_opt = false;
environment new_env = module::add(env, check(env, mk_definition(env, new_name, f_decl.get_univ_params(),
new_type, new_val)));
new_type, new_val, use_conv_opt)));
new_env = module::add(new_env, *g_key, [=](environment const &, serializer & s) { s << g << f << new_name; });
return mk_pair(update(new_env, ext), new_name);
}