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 0353e64 commit ff7fb5fCopy full SHA for ff7fb5f
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