summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-03-16 06:32:46 -0700
committerPaul Phillips <paulp@improving.org>2012-03-16 08:04:46 -0700
commitbc7bf663f2df564805fa5121de7b0006cf2149f2 (patch)
tree73edb30907fb326494f4576b53bd4d45e0201916 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parentf987afe55e6d4f71c7e9ad10d1ca9f6120dc1132 (diff)
downloadscala-bc7bf663f2df564805fa5121de7b0006cf2149f2.tar.gz
scala-bc7bf663f2df564805fa5121de7b0006cf2149f2.tar.bz2
scala-bc7bf663f2df564805fa5121de7b0006cf2149f2.zip
Finish fixing range positions.
At least, I think so.
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 973e26af41..c4880dd6d7 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -1295,7 +1295,7 @@ trait Typers extends Modes with Adaptations with PatMatVirtualiser {
}
def parentTypes(templ: Template): List[Tree] =
- if (templ.parents.isEmpty) List(atPos(templ.pos.focus)(TypeTree(AnyRefClass.tpe)))
+ if (templ.parents.isEmpty) List(atPos(templ.pos)(TypeTree(AnyRefClass.tpe)))
else try {
val clazz = context.owner
// Normalize supertype and mixins so that supertype is always a class, not a trait.