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.
2 parents ab02870 + 636aaca commit fb95781Copy full SHA for fb95781
compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala
@@ -313,6 +313,8 @@ private class ExtractDependenciesCollector extends tpd.TreeTraverser { thisTreeT
313
314
private def ignoreDependency(sym: Symbol)(implicit ctx: Context) =
315
!sym.exists ||
316
+ sym.unforcedIsAbsent || // ignore dependencies that have a symbol but do not exist.
317
+ // e.g. java.lang.Object companion object
318
sym.is(PackageClass) ||
319
sym.isEffectiveRoot ||
320
sym.isAnonymousFunction ||
tests/pos/i4318.scala
@@ -0,0 +1 @@
1
+import java.lang.Object
0 commit comments