File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/sbt
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -350,15 +350,15 @@ private class ExtractAPICollector(implicit val ctx: Context) extends ThunkHolder
350
350
case tp : NamedType =>
351
351
val sym = tp.symbol
352
352
// Normalize package prefix to avoid instability of representation
353
- val prefix = if (sym.isClass && sym. owner.is(Package ))
353
+ val prefix = if (sym.owner.is(Package ))
354
354
sym.owner.thisType
355
355
else
356
356
tp.prefix
357
357
new api.Projection (simpleType(prefix), sym.name.toString)
358
358
case TypeApplications .AppliedType (tycon, args) =>
359
359
def processArg (arg : Type ): api.Type = arg match {
360
360
case arg @ TypeBounds (lo, hi) => // Handle wildcard parameters
361
- if (lo.eq (defn.NothingType ) && hi.eq (defn.AnyType ))
361
+ if (lo.isDirectRef (defn.NothingClass ) && hi.isDirectRef (defn.AnyClass ))
362
362
Constants .emptyType
363
363
else {
364
364
val name = " _"
You can’t perform that action at this time.
0 commit comments