aboutsummaryrefslogtreecommitdiff
path: root/test/dotty
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-07-01 16:08:09 +0200
committerMartin Odersky <odersky@gmail.com>2015-07-06 17:46:46 +0200
commitfd1a732273ce57d8558a5dc81920dc1833d9d9ec (patch)
tree2bab5bebadf025384b2ba0623a64c47e5e515712 /test/dotty
parentc73b989fff953a4a71721697e6d30858bc37f189 (diff)
downloaddotty-fd1a732273ce57d8558a5dc81920dc1833d9d9ec.tar.gz
dotty-fd1a732273ce57d8558a5dc81920dc1833d9d9ec.tar.bz2
dotty-fd1a732273ce57d8558a5dc81920dc1833d9d9ec.zip
Turn global vars into vals
Some globally accessible vars were never updated; should be vals.
Diffstat (limited to 'test/dotty')
-rw-r--r--test/dotty/partest/DPDirectCompiler.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dotty/partest/DPDirectCompiler.scala b/test/dotty/partest/DPDirectCompiler.scala
index 885de8c62..c05357edb 100644
--- a/test/dotty/partest/DPDirectCompiler.scala
+++ b/test/dotty/partest/DPDirectCompiler.scala
@@ -13,7 +13,7 @@ class DPDirectCompiler(runner: DPTestRunner) extends nest.DirectCompiler(runner)
val clogWriter = new PrintWriter(clogFWriter, true)
clogWriter.println("\ncompiling " + sources.mkString(" ") + "\noptions: " + opts0.mkString(" "))
- implicit var ctx: dotty.tools.dotc.core.Contexts.Context = {
+ implicit val ctx: dotty.tools.dotc.core.Contexts.Context = {
val base = new dotty.tools.dotc.core.Contexts.ContextBase
import base.settings._
val ctx = base.initialCtx.fresh.setSetting(printtypes, true)