diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index b6bb61298..285fa5ab9 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -292,7 +292,7 @@ trait Namers extends MethodSynthesis { * the flags to keep. */ private def createMemberSymbol(tree: MemberDef, name: Name, mask: Long): Symbol = { - val pos = tree.pos + val pos = tree.pos.focus val isParameter = tree.mods.isParameter val sym = tree match { case TypeDef(_, _, _, _) if isParameter => owner.newTypeParameter(pos, name.toTypeName)