Skip to content

Commit c49664d

Browse files
committed
Fix debugging code
1 parent b065fe9 commit c49664d

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, effs => show(effs.asInstanceOf[Effects])) { 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
@@ -173,7 +173,7 @@ object Potentials {
173173

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

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

0 commit comments

Comments
 (0)