Skip to content

Commit 53219b5

Browse files
committed
Address comments
1 parent 85c6963 commit 53219b5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
4646

4747
def homogenize(tp: Type): Type =
4848
if (homogenizedView) {
49-
val a = tp.tryNormalize
50-
if (a.exists) {
51-
homogenize(a)
52-
} else tp match {
49+
tp match {
5350
case tp: ThisType if tp.cls.is(Package) && !tp.cls.isEffectiveRoot =>
5451
ctx.requiredPackage(tp.cls.fullName).termRef
5552
case tp: TypeVar if tp.isInstantiated =>
@@ -65,7 +62,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
6562
case AppliedType(tycon, args) =>
6663
tycon.dealias.appliedTo(args)
6764
case _ =>
68-
tp
65+
tp
6966
}
7067
} else tp
7168

library/src-bootstrapped/scala/Tuple.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,5 +346,6 @@ sealed class *:[+H, +T <: Tuple] extends NonEmptyTuple
346346

347347
object *: {
348348
inline def unapply[H, T <: Tuple](x: H *: T) =
349-
(scala.runtime.DynamicTuple.dynamicHead(x), scala.runtime.DynamicTuple.dynamicTail(x))
349+
if (Tuple.stageIt) (scala.runtime.DynamicTuple.dynamicHead(x), scala.runtime.DynamicTuple.dynamicTail(x))
350+
else (x.head, x.tail)
350351
}

0 commit comments

Comments
 (0)