fix(library/compiler/compiler): we must compile (non external) opaque constants
This commit is contained in:
parent
9984d28bb2
commit
1935986f3c
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ environment compile(environment const & env, options const & opts, names cs) {
|
|||
|
||||
for (name const & c : cs) {
|
||||
lean_assert(!is_extern_constant(env, c));
|
||||
if (!env.get(c).is_definition() || has_synthetic_sorry(env.get(c).get_value())) {
|
||||
if ((!env.get(c).is_definition() && !env.get(c).is_opaque()) || has_synthetic_sorry(env.get(c).get_value())) {
|
||||
return env;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue