We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c78da commit 28eb1c3Copy full SHA for 28eb1c3
compiler/src/dotty/tools/dotc/ast/TreeInfo.scala
@@ -544,7 +544,7 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
544
def patVars(tree: Tree)(implicit ctx: Context): List[Symbol] = {
545
val acc = new TreeAccumulator[List[Symbol]] {
546
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)
+ case Bind(_, body) => apply(tree.symbol :: syms, body)
548
case _ => foldOver(syms, tree)
549
}
550
0 commit comments