diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-07-16 14:37:17 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-07-16 14:52:12 +0200 |
commit | 9caa07a15a312a2b208fb346a5301258be62983b (patch) | |
tree | d8da412086112a26de946fc46bc619ca28432ec1 /test/test/transform/CreateCompanionObjectsTest.scala | |
parent | ba4ba5e695bf660fd1d00e2a7f6d9cdc054f4a78 (diff) | |
download | dotty-9caa07a15a312a2b208fb346a5301258be62983b.tar.gz dotty-9caa07a15a312a2b208fb346a5301258be62983b.tar.bz2 dotty-9caa07a15a312a2b208fb346a5301258be62983b.zip |
Phases in tests now also have valid periods.
Diffstat (limited to 'test/test/transform/CreateCompanionObjectsTest.scala')
-rw-r--r-- | test/test/transform/CreateCompanionObjectsTest.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test/transform/CreateCompanionObjectsTest.scala b/test/test/transform/CreateCompanionObjectsTest.scala index 0a50cb942..05f4e1062 100644 --- a/test/test/transform/CreateCompanionObjectsTest.scala +++ b/test/test/transform/CreateCompanionObjectsTest.scala @@ -32,6 +32,7 @@ class CreateCompanionObjectsTest extends DottyTest { override def name: String = "create all companion objects" override def predicate(cts: TypeDef)(implicit ctx:Context): Boolean = true + init(ctx, ctx.period.firstPhaseId, ctx.period.lastPhaseId) }) override def name: String = "test" @@ -56,6 +57,7 @@ class CreateCompanionObjectsTest extends DottyTest { override def name: String = "create all companion modules" override def predicate(cts: TypeDef)(implicit ctx:Context): Boolean = true + init(ctx, ctx.period.firstPhaseId, ctx.period.lastPhaseId) }) override def name: String = "test" @@ -79,6 +81,7 @@ class CreateCompanionObjectsTest extends DottyTest { override def transformations = Array(new CreateCompanionObjects { override def name: String = "create all companion modules" override def predicate(cts: TypeDef)(implicit ctx:Context): Boolean = true + init(ctx, ctx.period.firstPhaseId, ctx.period.lastPhaseId) }) override def name: String = "test" @@ -102,6 +105,7 @@ class CreateCompanionObjectsTest extends DottyTest { override def transformations = Array(new CreateCompanionObjects { override def name: String = "create all companion modules" override def predicate(cts: TypeDef)(implicit ctx:Context): Boolean = cts.name.toString.contains("CREATE") + init(ctx, ctx.period.firstPhaseId, ctx.period.lastPhaseId) }) override def name: String = "test" |