aboutsummaryrefslogtreecommitdiff
path: root/test/test/DottyTest.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2014-07-16 14:37:17 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-07-16 14:52:12 +0200
commit9caa07a15a312a2b208fb346a5301258be62983b (patch)
treed8da412086112a26de946fc46bc619ca28432ec1 /test/test/DottyTest.scala
parentba4ba5e695bf660fd1d00e2a7f6d9cdc054f4a78 (diff)
downloaddotty-9caa07a15a312a2b208fb346a5301258be62983b.tar.gz
dotty-9caa07a15a312a2b208fb346a5301258be62983b.tar.bz2
dotty-9caa07a15a312a2b208fb346a5301258be62983b.zip
Phases in tests now also have valid periods.
Diffstat (limited to 'test/test/DottyTest.scala')
-rw-r--r--test/test/DottyTest.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test/DottyTest.scala b/test/test/DottyTest.scala
index 4efb1e615..06a31fa6a 100644
--- a/test/test/DottyTest.scala
+++ b/test/test/DottyTest.scala
@@ -42,6 +42,7 @@ class DottyTest extends ContextEscapeDetection{
ctx = null
}
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.name == phase).get