diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-13 12:08:27 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-13 12:08:27 +0200 |
commit | 73a93505c432b410ae39fb3c4d6168b2e49832ce (patch) | |
tree | 53d45141a7b93682bea6430b0fb6ab28c3c3fad3 /tests/pending/run/outertest.scala | |
parent | 89bacb9c25a58454ff1878e67f7ea07ffc8c269f (diff) | |
download | dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.tar.gz dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.tar.bz2 dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.zip |
Running rewrite tool on run tests.
Diffstat (limited to 'tests/pending/run/outertest.scala')
-rw-r--r-- | tests/pending/run/outertest.scala | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/pending/run/outertest.scala b/tests/pending/run/outertest.scala index fa0443f66..f1030da23 100644 --- a/tests/pending/run/outertest.scala +++ b/tests/pending/run/outertest.scala @@ -36,14 +36,19 @@ class C extends A { object Test extends App { val b = new B val c0 = new C - val c = new { override val c = c0 } with C + val c = new C { +// TODO NEEDS MANUAL CHANGE (early initializers) +// BEGIN copied early initializers +override val c = c0 +// END copied early initializers +} assert((new b.J).bar eq b) assert((new b.K).bar eq b) assert((new b.L).bar eq b) assert((new c.M).bar eq c) - def checkOuterFields[C: ClassTag](expected: Int) { + def checkOuterFields[C: ClassTag](expected: Int): Unit = { val cls = implicitly[ClassTag[C]].runtimeClass val outerFields = cls.getDeclaredFields().filter(_.getName.contains("$outer")) assert(outerFields.size == expected, outerFields.map(_.getName)) |