diff options
author | Paul Phillips <paulp@improving.org> | 2012-11-03 06:09:36 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-11-03 06:09:36 -0700 |
commit | 0475fbd6e0cad15460d87eda52c9487f7ff171d3 (patch) | |
tree | 531bc073964bca60e5dcab0ff326f9bfb21ad8f7 /src/compiler | |
parent | dd803205a0796068661b7a180c583fa1424cd3ef (diff) | |
parent | 8541ea31091ce6b066825b8bbae76a02a96a884a (diff) | |
download | scala-0475fbd6e0cad15460d87eda52c9487f7ff171d3.tar.gz scala-0475fbd6e0cad15460d87eda52c9487f7ff171d3.tar.bz2 scala-0475fbd6e0cad15460d87eda52c9487f7ff171d3.zip |
Merge pull request #1563 from retronym/ticket/6609
Comment to link code to a relevant JIRA ticket
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index 19c2c4042a..c798e38e92 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -582,6 +582,8 @@ trait Typers extends Modes with Adaptations with Tags { // short cut some aliases. It seems pattern matching needs this // to notice exhaustiveness and to generate good code when // List extractors are mixed with :: patterns. See Test5 in lists.scala. + // + // TODO SI-6609 Eliminate this special case once the old pattern matcher is removed. def dealias(sym: Symbol) = (atPos(tree.pos.makeTransparent) {gen.mkAttributedRef(sym)} setPos tree.pos, sym.owner.thisType) sym.name match { |