diff options
author | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-08-15 11:01:43 +0200 |
---|---|---|
committer | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-08-15 11:03:07 +0200 |
commit | 0b2ddd0df33bf529b062dc6167b50a33fa5f84b7 (patch) | |
tree | 454846615abc9ad724d918516641d95908385553 /src/dotty/tools/dotc/ast/Desugar.scala | |
parent | 3265323f96f69bded3edb832519825bc7c89e40f (diff) | |
download | dotty-0b2ddd0df33bf529b062dc6167b50a33fa5f84b7.tar.gz dotty-0b2ddd0df33bf529b062dc6167b50a33fa5f84b7.tar.bz2 dotty-0b2ddd0df33bf529b062dc6167b50a33fa5f84b7.zip |
Fix #1432: Fix desugaring of Bind(WILDCARD, _).
Diffstat (limited to 'src/dotty/tools/dotc/ast/Desugar.scala')
-rw-r--r-- | src/dotty/tools/dotc/ast/Desugar.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/ast/Desugar.scala b/src/dotty/tools/dotc/ast/Desugar.scala index a9705e209..8a4b9cfe8 100644 --- a/src/dotty/tools/dotc/ast/Desugar.scala +++ b/src/dotty/tools/dotc/ast/Desugar.scala @@ -1007,8 +1007,8 @@ object desugar { def add(named: NameTree, t: Tree): Unit = if (!seenName(named.name)) buf += ((named, t)) def collect(tree: Tree): Unit = tree match { - case Bind(nme.WILDCARD, _) => - collect(tree) + case Bind(nme.WILDCARD, tree1) => + collect(tree1) case tree @ Bind(_, Typed(tree1, tpt)) if !mayBeTypePat(tpt) => add(tree, tpt) collect(tree1) |