Skip to content

Commit

Permalink
Fix tree shaking graph edge code (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnynek authored Dec 11, 2024
1 parent 3ee505c commit c2aa43f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/main/scala/org/bykn/bosatsu/PackageMap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ object PackageMap {
def dependency(a: Ident): Iterable[Ident] =
p.toMap.get(a._1) match {
case Some(pack) =>
pack.lets.flatMap { case (_, _, te) => te.globals }
pack.lets.flatMap {
case (n, _, te) if a._2 === n => te.globals
case _ => Nil
}
case None => Nil
}

Expand Down

0 comments on commit c2aa43f

Please sign in to comment.