summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2007-04-19 05:16:02 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2007-04-19 05:16:02 +0000
commit2ef5d4c6d81e5008fdb2ae1b4f2ecdd9d9901fd2 (patch)
tree1d1b222bd6a0caa29c0a02e465842bdf30cfae52 /src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala
parente43c7bef06d64b98f00752bd06510768ba37910a (diff)
downloadscala-2ef5d4c6d81e5008fdb2ae1b4f2ecdd9d9901fd2.tar.gz
scala-2ef5d4c6d81e5008fdb2ae1b4f2ecdd9d9901fd2.tar.bz2
scala-2ef5d4c6d81e5008fdb2ae1b4f2ecdd9d9901fd2.zip
Switching over to position objects from positio...
Switching over to position objects from position type parameters. Positions are no longer ints.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala b/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala
index 61bd300472..0b88b7e340 100644
--- a/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala
@@ -8,6 +8,7 @@ package scala.tools.nsc.typechecker
import scala.collection.mutable.ListBuffer
import nsc.symtab.Flags._
+import scala.tools.nsc.util.{Position}
/** This phase adds super accessors for all super calls that
* either appear in a trait or have as a target a member of some outer class.
@@ -289,7 +290,7 @@ abstract class SuperAccessors extends transform.Transform with transform.TypingT
* inherit anything. Since we can't (yet) add accessors for 'required'
* classes, this has to be signaled as error.
*/
- private def needsProtectedAccessor(sym: Symbol, pos: PositionType): Boolean = {
+ private def needsProtectedAccessor(sym: Symbol, pos: Position): Boolean = {
val res = /* settings.debug.value && */
((sym hasFlag PROTECTED)
&& (!validCurrentOwner || !(currentOwner.enclClass.thisSym isSubClass sym.owner))