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 f3c54e4 + ff7fb5f commit 4912ba5Copy full SHA for 4912ba5
compiler/src/dotty/tools/dotc/core/TypeOps.scala
@@ -220,7 +220,8 @@ trait TypeOps { this: Context => // TODO: Make standalone object.
220
*/
221
def makePackageObjPrefixExplicit(tpe: NamedType): Type = {
222
def tryInsert(pkgClass: SymDenotation): Type = pkgClass match {
223
- case pkgCls: PackageClassDenotation if !(tpe.symbol.maybeOwner is Package) =>
+ case pkgCls: PackageClassDenotation
224
+ if !tpe.symbol.maybeOwner.is(Package) && pkgCls.packageObj.exists =>
225
tpe.derivedSelect(pkgCls.packageObj.termRef)
226
case _ =>
227
tpe
0 commit comments