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/delay-good.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/delay-good.scala')
-rw-r--r-- | tests/pending/run/delay-good.scala | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/tests/pending/run/delay-good.scala b/tests/pending/run/delay-good.scala index 2e4487b92..dbeb993a5 100644 --- a/tests/pending/run/delay-good.scala +++ b/tests/pending/run/delay-good.scala @@ -44,7 +44,7 @@ class E() extends D() { object Test { def p(msg: String) = println("\n\n// " + msg) - def main(args: Array[String]) { + def main(args: Array[String]): Unit = { val f: A => Unit = _.postConstructionCode p("new C { }") @@ -60,17 +60,37 @@ object Test { p("new D() { val x = 5 }") f(new D() { val x = 5 }) p("new { val x = 5 } with D()") - f(new { val x = 5 } with D()) + f(new D() { +// TODO NEEDS MANUAL CHANGE (early initializers) +// BEGIN copied early initializers +val x = 5 +// END copied early initializers +}) p("new E() { val x = 5 }") f(new E() { val x = 5 }) p("new { val x = 5 } with E()") - f(new { val x = 5 } with E()) + f(new E() { +// TODO NEEDS MANUAL CHANGE (early initializers) +// BEGIN copied early initializers +val x = 5 +// END copied early initializers +}) p("new { val x = 5 } with E() { }") - f(new { val x = 5 } with E() { }) + f(new E() { +// TODO NEEDS MANUAL CHANGE (early initializers) +// BEGIN copied early initializers +val x = 5 +// END copied early initializers + }) p("new { val x = 5 } with E() { 5 }") - f(new { val x = 5 } with E() { 5 }) + f(new E() { +// TODO NEEDS MANUAL CHANGE (early initializers) +// BEGIN copied early initializers +val x = 5 +// END copied early initializers + 5 }) println("") } |