aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/delay-good.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 12:08:27 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 12:08:27 +0200
commit73a93505c432b410ae39fb3c4d6168b2e49832ce (patch)
tree53d45141a7b93682bea6430b0fb6ab28c3c3fad3 /tests/pending/run/delay-good.scala
parent89bacb9c25a58454ff1878e67f7ea07ffc8c269f (diff)
downloaddotty-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.scala30
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("")
}