Skip to content

Commit 28eb1c3

Browse files
committed
Revert change to patVars
With the changes in the last commit, the symbol of a Bind always exists.
1 parent 75c78da commit 28eb1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/TreeInfo.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
544544
def patVars(tree: Tree)(implicit ctx: Context): List[Symbol] = {
545545
val acc = new TreeAccumulator[List[Symbol]] {
546546
def apply(syms: List[Symbol], tree: Tree)(implicit ctx: Context) = tree match {
547-
case Bind(_, body) if tree.symbol.exists => apply(tree.symbol :: syms, body)
547+
case Bind(_, body) => apply(tree.symbol :: syms, body)
548548
case _ => foldOver(syms, tree)
549549
}
550550
}

0 commit comments

Comments
 (0)