Skip to content

Commit

Permalink
Address PR feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Dec 5, 2023
1 parent df3c0c9 commit dfbd52b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,13 @@ final class Dependency(val global: CallbackGlobal) extends LocateClassFile with

case f: Function =>
processSAMAttachment(f)(symbol => {
addDependency(symbol); addInheritanceDependency(symbol)
addDependency(symbol)
// Not using addInheritanceDependency as it would incorrectly classify dependency as non-local
// ref: https://github.com/scala/scala/pull/10617/files#r1415226169
val from = resolveDependencySource
addClassDependency(_localInheritanceCache, processor.localInheritance, from, symbol)
})
super.traverse(tree)
case other => super.traverse(other)
}
}
Expand Down

0 comments on commit dfbd52b

Please sign in to comment.