Skip to content

Commit

Permalink
Fix bugs in module loading
Browse files Browse the repository at this point in the history
  • Loading branch information
valis committed Mar 19, 2024
1 parent 7b81857 commit da10a8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions base/src/main/java/org/arend/library/BaseLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public void resetGroup(Group group) {
for (Group subgroup : group.getDynamicSubgroups()) {
resetGroup(subgroup);
}
for (Group.InternalReferable referable : group.getInternalReferables()) {
resetDefinition(referable.getReferable());
}
}

public void resetDefinition(LocatedReferable referable) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,6 @@ public MetaTopDefinition getTypechecked() {
@Override
public boolean isTypechecked() {
// If it's a definable meta, we always need to typecheck its dependencies
return myDefinition != null && (!(myDefinition instanceof DefinableMetaDefinition) || myTypechecked != null);
return myDefinition != null && (!(myDefinition instanceof DefinableMetaDefinition) || myTypechecked != null && !myTypechecked.status().needsTypeChecking());
}
}

0 comments on commit da10a8b

Please sign in to comment.