Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit eccf21a

Browse files
committed
Fixed missing unused import warning in circular dependency.
Fixes #2152
1 parent 65aba89 commit eccf21a

File tree

1 file changed

+1
-1
lines changed
  • src/org/rascalmpl/core/library/lang/rascalcore/check

1 file changed

+1
-1
lines changed

src/org/rascalmpl/core/library/lang/rascalcore/check/Checker.rsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ ModuleStatus rascalTModelForLocs(
295295
if(ms.moduleLocs[iname]? && ms.moduleLocs[m]? && usesOrExtendsADT(ms.moduleLocs[m].path, ms.moduleLocs[iname].path, tm)){
296296
continue check_imports;
297297
}
298-
if(checked() in ms.status[iname] && rsc_not_found() notin ms.status[iname]){
298+
if((iname in component || checked() in ms.status[iname]) && rsc_not_found() notin ms.status[iname]){
299299
if(imod is \default){
300300
imsgs += warning("Unused import of `<iname>`", imod@\loc);
301301
} //else { //TODO: maybe add option to turn off info messages?

0 commit comments

Comments
 (0)