summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorMiles Sabin <miles@milessabin.com>2009-09-07 22:57:54 +0000
committerMiles Sabin <miles@milessabin.com>2009-09-07 22:57:54 +0000
commitba6cdaf1f3b7b0b4dc8b90bd5a6bf0b68dbabaec (patch)
tree27d588401cc4d934fa3d7029ef626f3086b529bb /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parentaef123719dbe81b20fe3eed6390df9d62fd24a0b (diff)
downloadscala-ba6cdaf1f3b7b0b4dc8b90bd5a6bf0b68dbabaec.tar.gz
scala-ba6cdaf1f3b7b0b4dc8b90bd5a6bf0b68dbabaec.tar.bz2
scala-ba6cdaf1f3b7b0b4dc8b90bd5a6bf0b68dbabaec.zip
Slight tweak to positions of dealised terms.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 59b345dd6f..b816ac9417 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -578,7 +578,7 @@ trait Typers { self: Analyzer =>
// fails to notice exhaustiveness and to generate good code when
// List extractors are mixed with :: patterns. See Test5 in lists.scala.
def dealias(sym: Symbol) =
- (atPos(tree.pos) { gen.mkAttributedRef(sym) }, sym.owner.thisType)
+ ({ val t = gen.mkAttributedRef(sym) ; t.setPos(tree.pos) ; t }, sym.owner.thisType)
sym.name match {
case nme.List => return dealias(ListModule)
case nme.Seq => return dealias(SeqModule)