diff options
author | Miles Sabin <miles@milessabin.com> | 2009-09-07 22:57:54 +0000 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2009-09-07 22:57:54 +0000 |
commit | ba6cdaf1f3b7b0b4dc8b90bd5a6bf0b68dbabaec (patch) | |
tree | 27d588401cc4d934fa3d7029ef626f3086b529bb | |
parent | aef123719dbe81b20fe3eed6390df9d62fd24a0b (diff) | |
download | scala-ba6cdaf1f3b7b0b4dc8b90bd5a6bf0b68dbabaec.tar.gz scala-ba6cdaf1f3b7b0b4dc8b90bd5a6bf0b68dbabaec.tar.bz2 scala-ba6cdaf1f3b7b0b4dc8b90bd5a6bf0b68dbabaec.zip |
Slight tweak to positions of dealised terms.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
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) |