Skip to content

Commit fae6009

Browse files
committed
drop redundant code
1 parent db2390b commit fae6009

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

compiler/src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -505,21 +505,6 @@ trait ImplicitRunInfo { self: Run =>
505505
def isLiftTarget(sym: Symbol) = sym.isClass || sym.isOpaqueAlias
506506
(lead /: tp.parentSymbols(isLiftTarget))(joinClass)
507507
}
508-
case tp: NamedType =>
509-
tp.info match {
510-
case TypeAlias(alias) =>
511-
apply(alias)
512-
case TypeBounds(_, hi) =>
513-
if (tp.symbol.isOpaqueAlias) tp
514-
else {
515-
val pre = tp.prefix
516-
def joinClass(tp: Type, cls: ClassSymbol) =
517-
AndType.make(tp, cls.typeRef.asSeenFrom(pre, cls.owner))
518-
val lead = if (pre eq NoPrefix) defn.AnyType else apply(pre)
519-
(lead /: hi.classSymbols)(joinClass)
520-
}
521-
case _ => tp
522-
}
523508
case tp: TypeVar =>
524509
apply(tp.underlying)
525510
case tp: AppliedType if !tp.tycon.typeSymbol.isClass =>
@@ -598,7 +583,7 @@ trait ImplicitRunInfo { self: Run =>
598583
val liftedTp = if (isLifted) tp else liftToClasses(tp)
599584
val refs =
600585
if (liftedTp ne tp) {
601-
implicitsDetailed.println(i"lifted of $tp = $liftedTp")
586+
implicitsDetailed.println(i"lifted of $tp = $liftedTp")
602587
iscope(liftedTp, isLifted = true).companionRefs
603588
}
604589
else

0 commit comments

Comments
 (0)