aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dotty/tools/dotc/transform/PatternMatcher.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/transform/PatternMatcher.scala b/src/dotty/tools/dotc/transform/PatternMatcher.scala
index 9fbf705b9..e7780a128 100644
--- a/src/dotty/tools/dotc/transform/PatternMatcher.scala
+++ b/src/dotty/tools/dotc/transform/PatternMatcher.scala
@@ -427,9 +427,9 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {thisTrans
case class SubstOnlyTreeMaker(prevBinder: Symbol, nextBinder: Symbol) extends TreeMaker {
val pos = Positions.NoPosition
- val localSubstitution = Substitution(prevBinder, ref(nextBinder))
- def chainBefore(next: Tree)(casegen: Casegen): Tree = /*substitution(*/next//)
- override def toString = "S" + localSubstitution
+ val localSubstitution = EmptySubstitution
+ def chainBefore(next: Tree)(casegen: Casegen): Tree = Block(List(ValDef(prevBinder.asTerm, ref(nextBinder))), next)
+ //override def toString = "S" + localSubstitution
}
sealed abstract class FunTreeMaker extends TreeMaker {