diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-03-08 20:12:08 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-04-07 08:40:27 +0200 |
commit | 3b4906d9dc5621d595259254057dd5649e4f9862 (patch) | |
tree | 180569fcc9fabadf8f2f0677472ad4cff2873e31 /test/test/DottyTest.scala | |
parent | 0e6cce669a784ff1bb209372b191d0985e0c1e61 (diff) | |
download | dotty-3b4906d9dc5621d595259254057dd5649e4f9862.tar.gz dotty-3b4906d9dc5621d595259254057dd5649e4f9862.tar.bz2 dotty-3b4906d9dc5621d595259254057dd5649e4f9862.zip |
Add tests for classes and traits
Diffstat (limited to 'test/test/DottyTest.scala')
-rw-r--r-- | test/test/DottyTest.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test/DottyTest.scala b/test/test/DottyTest.scala index 77642561a..15d82c208 100644 --- a/test/test/DottyTest.scala +++ b/test/test/DottyTest.scala @@ -32,7 +32,6 @@ class DottyTest /*extends ContextEscapeDetection*/ { } */ private def compilerWithChecker(phase: String)(assertion:(tpd.Tree, Context) => Unit) = new Compiler { - self => override def phases = { val allPhases = super.phases val targetPhase = allPhases.flatten.find(p => p.phaseName == phase).get @@ -48,7 +47,7 @@ class DottyTest /*extends ContextEscapeDetection*/ { } } - def checkCompile(checkAfterPhase: String, source:String)(assertion:(tpd.Tree, Context) => Unit): Unit = { + def checkCompile(checkAfterPhase: String, source: String)(assertion: (tpd.Tree, Context) => Unit): Unit = { val c = compilerWithChecker(checkAfterPhase)(assertion) c.rootContext(ctx) val run = c.newRun |