Skip to content

Commit 93a8184

Browse files
committed
Fix debugging code
1 parent 081aa78 commit 93a8184

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/init/Effects.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ object Effects {
6161
extension (eff: Effect) def toEffs: Effects = Effects.empty + eff
6262

6363
def asSeenFrom(eff: Effect, thisValue: Potential)(implicit env: Env): Effect =
64-
trace(eff.show + " asSeenFrom " + thisValue.show + ", current = " + currentClass.show, init, eff => show(Effects.empty + eff.asInstanceOf[Effect])) { eff match {
64+
trace(eff.show + " asSeenFrom " + thisValue.show + ", current = " + currentClass.show, init, _.asInstanceOf[Effect].show) { eff match {
6565
case Promote(pot) =>
6666
val pot1 = Potentials.asSeenFrom(pot, thisValue)
6767
Promote(pot1)(eff.source)

compiler/src/dotty/tools/dotc/transform/init/Potentials.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ object Potentials {
174174

175175
extension (ps: Potentials) def promote(source: Tree): Effects = ps.map(Promote(_)(source))
176176

177-
def asSeenFrom(pot: Potential, thisValue: Potential)(implicit env: Env): Potential = trace(pot.show + " asSeenFrom " + thisValue.show, init, pot => pot.asInstanceOf[Potential].show) {
177+
def asSeenFrom(pot: Potential, thisValue: Potential)(implicit env: Env): Potential = trace(pot.show + " asSeenFrom " + thisValue.show, init, _.asInstanceOf[Potential].show) {
178178
pot match {
179179
case MethodReturn(pot1, sym) =>
180180
val pot = asSeenFrom(pot1, thisValue)

0 commit comments

Comments
 (0)