summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2013-09-13 10:29:01 -0700
committerSom Snytt <som.snytt@gmail.com>2013-09-13 10:29:01 -0700
commitff57b76f8ca7629bc61ee4ae3aa75da2bf29167a (patch)
treefae1bdb82ea99956aca6d05c5858ae0c5de30523 /src/compiler
parent33a819f61b8b9c19708e8ae22bf25adf6cc7ac24 (diff)
downloadscala-ff57b76f8ca7629bc61ee4ae3aa75da2bf29167a.tar.gz
scala-ff57b76f8ca7629bc61ee4ae3aa75da2bf29167a.tar.bz2
scala-ff57b76f8ca7629bc61ee4ae3aa75da2bf29167a.zip
SI-7839 Final val breaks checkinit build
Scalac does not care to initialize the unused field it emits for a `final val`. Users of the accessor method, which supplies the constant definition inline, will find that -Xcheckinit will throw. Therefore, we don't use `final` for the `val phaseName`.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index f6d4b26cda..19fb2a9289 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -629,7 +629,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter)
object terminal extends {
val global: Global.this.type = Global.this
} with SubComponent {
- final val phaseName = "terminal"
+ val phaseName = "terminal"
val runsAfter = List("jvm")
val runsRightAfter = None
override val terminal = true