diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 30 | ||||
-rw-r--r-- | src/manual/scala/man1/Command.scala | 2 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index ce75abe609..01d1ed4eac 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -232,9 +232,7 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable } object analyzer extends Analyzer { - val global: Global.this.type = { - Global.this - } + val global: Global.this.type = Global.this } object superAccessors extends SuperAccessors { @@ -617,16 +615,18 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable def forCLDC: Boolean = settings.target.value == "cldc" def onlyPresentation = settings.doc.value // position stuff - protected val positionConfiguration : PositionConfiguration = new PositionConfiguration { - type PositionType = Int; - def coercePosToInt(pos : PositionType) : Int = pos; - def coerceIntToPos(pos : Int) : PositionType = pos; - val NoPos : PositionType = Position.NOPOS; - val FirstPos : PositionType = Position.FIRSTPOS; - } - final type PositionType = positionConfiguration.PositionType; - final def FirstPos = positionConfiguration.FirstPos; - final def NoPos = positionConfiguration.NoPos; - final def coerceIntToPos(pos : Int) : PositionType = positionConfiguration.coerceIntToPos(pos); - implicit final def coercePosToInt(pos : PositionType) : Int = positionConfiguration.coercePosToInt(pos); + protected val positionConfiguration: PositionConfiguration = new PositionConfiguration { + type PositionType = Int + def coercePosToInt(pos: PositionType): Int = pos + def coerceIntToPos(pos: Int): PositionType = pos + val NoPos: PositionType = Position.NOPOS + val FirstPos: PositionType = Position.FIRSTPOS + } + final type PositionType = positionConfiguration.PositionType + final val FirstPos = positionConfiguration.FirstPos + final val NoPos = positionConfiguration.NoPos + final def coerceIntToPos(pos: Int): PositionType = + positionConfiguration.coerceIntToPos(pos) + implicit final def coercePosToInt(pos: PositionType): Int = + positionConfiguration.coercePosToInt(pos) } diff --git a/src/manual/scala/man1/Command.scala b/src/manual/scala/man1/Command.scala index 13cc7c9b6f..7a5aeb23a3 100644 --- a/src/manual/scala/man1/Command.scala +++ b/src/manual/scala/man1/Command.scala @@ -51,7 +51,7 @@ trait Command { //private val df = new java.text.SimpleDateFormat("MMM d, yyyy") //private val rightNow = new java.util.Date() - def lastModified: String = "June 8, 2006" // df.format(rightNow) + def lastModified: String = "September 20, 2006" // df.format(rightNow) def manpage: Document } |