diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-08-17 20:38:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-17 20:38:57 -0700 |
commit | 5a5f9d7ed37ca6449ef61ee5e0f6fbf9731df795 (patch) | |
tree | bf3c9bc5760db020986aec535c4f5e086cbac4f4 /src | |
parent | aaa32f70da1df75e0571a080a1738634b8bad6c6 (diff) | |
parent | 0b2ddd0df33bf529b062dc6167b50a33fa5f84b7 (diff) | |
download | dotty-5a5f9d7ed37ca6449ef61ee5e0f6fbf9731df795.tar.gz dotty-5a5f9d7ed37ca6449ef61ee5e0f6fbf9731df795.tar.bz2 dotty-5a5f9d7ed37ca6449ef61ee5e0f6fbf9731df795.zip |
Merge pull request #1452 from dotty-staging/fix-#1432
Fix desugaring of Bind(WILDCARD, _).
Diffstat (limited to 'src')
-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) |