Skip to content

Commit

Permalink
Eliminate duplicated references to Main
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Dec 16, 2024
1 parent 6c4abd8 commit bb4aff2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ case object Imports extends IRPass {
val parts = newName.parts
if (parts.length == 2) {
i.copy(
name = newName.copy(parts = parts :+ mainModuleName),
name =
newName.copy(parts = parts :+ mainModuleName.duplicate()),
rename = computeRename(
i.rename,
i.onlyNames.nonEmpty || i.isAll,
Expand Down

0 comments on commit bb4aff2

Please sign in to comment.