Skip to content

Commit a0aea99

Browse files
authored
Merge pull request #11200 from natsukagami/fix-trace-command
Fix trace command for `effect.asSeenFrom`
2 parents b731573 + 883adb2 commit a0aea99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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, eff => show(Effects.empty + eff.asInstanceOf[Effect])) { eff match {
6565
case Promote(pot) =>
6666
val pot1 = Potentials.asSeenFrom(pot, thisValue)
6767
Promote(pot1)(eff.source)

0 commit comments

Comments
 (0)