diff options
author | Som Snytt <som.snytt@gmail.com> | 2013-09-13 10:29:01 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2013-09-13 10:29:01 -0700 |
commit | ff57b76f8ca7629bc61ee4ae3aa75da2bf29167a (patch) | |
tree | fae1bdb82ea99956aca6d05c5858ae0c5de30523 | |
parent | 33a819f61b8b9c19708e8ae22bf25adf6cc7ac24 (diff) | |
download | scala-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`.
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 2 |
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 |