aboutsummaryrefslogtreecommitdiff
path: root/test/test
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2014-03-27 12:53:03 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-03-27 15:02:53 +0100
commit97faee5a82b40b4c980c8cb222ff5ac4cb9083a4 (patch)
tree760353c5f86d35d473a54ba2ba71a4b0f55ddd41 /test/test
parenta6419fbd80bb63413de671af331ae35da4fa4e1b (diff)
downloaddotty-97faee5a82b40b4c980c8cb222ff5ac4cb9083a4.tar.gz
dotty-97faee5a82b40b4c980c8cb222ff5ac4cb9083a4.tar.bz2
dotty-97faee5a82b40b4c980c8cb222ff5ac4cb9083a4.zip
Rename methods on FreshContext to make mutation obvious
And avoid name clashes
Diffstat (limited to 'test/test')
-rw-r--r--test/test/DottyTest.scala10
-rw-r--r--test/test/ShowClassTests.scala4
2 files changed, 7 insertions, 7 deletions
diff --git a/test/test/DottyTest.scala b/test/test/DottyTest.scala
index fcc211175..604f5d500 100644
--- a/test/test/DottyTest.scala
+++ b/test/test/DottyTest.scala
@@ -22,14 +22,14 @@ class DottyTest {
val base = new ContextBase
import base.settings._
val ctx = base.initialCtx.fresh
- .withSetting(verbose, true)
+ .setSetting(verbose, true)
// .withSetting(debug, true)
// .withSetting(debugTrace, true)
// .withSetting(prompt, true)
- .withSetting(Ylogcp, true)
- .withSetting(printtypes, true)
- .withSetting(pageWidth, 90)
- .withSetting(log, List("<some"))
+ .setSetting(Ylogcp, true)
+ .setSetting(printtypes, true)
+ .setSetting(pageWidth, 90)
+ .setSetting(log, List("<some"))
// .withTyperState(new TyperState(new ConsoleReporter()(base.initialCtx)))
// .withSetting(uniqid, true)
diff --git a/test/test/ShowClassTests.scala b/test/test/ShowClassTests.scala
index 46f9e385e..5c6cb8d58 100644
--- a/test/test/ShowClassTests.scala
+++ b/test/test/ShowClassTests.scala
@@ -42,8 +42,8 @@ class ShowClassTests extends DottyTest {
"dotty.tools.dotc.core.pickling.AbstractFileReader")
def doTwice(test: Context => Unit)(implicit ctx: Context): Unit = {
- test(ctx.fresh.withSetting(ctx.base.settings.debug, true))
- test(ctx.fresh.withSetting(ctx.base.settings.debug, false))
+ test(ctx.fresh.setSetting(ctx.base.settings.debug, true))
+ test(ctx.fresh.setSetting(ctx.base.settings.debug, false))
}
def showPackage(pkg: TermSymbol)(implicit ctx: Context): Unit = {