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.
2 parents dd80320 + 8541ea3 commit 0475fbdCopy full SHA for 0475fbd
src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -582,6 +582,8 @@ trait Typers extends Modes with Adaptations with Tags {
582
// short cut some aliases. It seems pattern matching needs this
583
// to notice exhaustiveness and to generate good code when
584
// List extractors are mixed with :: patterns. See Test5 in lists.scala.
585
+ //
586
+ // TODO SI-6609 Eliminate this special case once the old pattern matcher is removed.
587
def dealias(sym: Symbol) =
588
(atPos(tree.pos.makeTransparent) {gen.mkAttributedRef(sym)} setPos tree.pos, sym.owner.thisType)
589
sym.name match {
0 commit comments