We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5193632 commit 452356bCopy full SHA for 452356b
compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala
@@ -248,9 +248,8 @@ private class ExtractDependenciesCollector extends tpd.TreeTraverser { thisTreeT
248
*/
249
private def resolveDependencySource(implicit ctx: Context): Symbol = {
250
def isNonLocalClass(sym: Symbol) = sym.isClass && !isLocal(sym)
251
- //val source = ctx.owner.ownersIterator.find(isNonLocalClass).get // Zinc
252
- val source = currentClass
253
- if (source.isEffectiveRoot) responsibleForImports else source
+ val source = ctx.owner.ownersIterator.find(isNonLocalClass).get
+ if (source.is(PackageClass)) responsibleForImports else source
254
}
255
256
private def addUsedName(fromClass: Symbol, name: Name, scope: UseScope): Unit = {
0 commit comments