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/lazy-exprs.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/lazy-exprs.scala')
-rw-r--r-- | tests/pending/run/lazy-exprs.scala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/pending/run/lazy-exprs.scala b/tests/pending/run/lazy-exprs.scala index 204c4b564..c1800f2c6 100644 --- a/tests/pending/run/lazy-exprs.scala +++ b/tests/pending/run/lazy-exprs.scala @@ -1,6 +1,6 @@ object TestExpressions { - def patmatchScrut { + def patmatchScrut: Unit = { lazy val z1: Option[String] = { println("forced <z1>"); Some("lazy z1") } val res = z1 match { @@ -14,7 +14,7 @@ object TestExpressions { println("failed") } - def patmatchCase { + def patmatchCase: Unit = { val t: Option[String] = Some("test") val res = t match { case Some(msg) => @@ -31,7 +31,7 @@ object TestExpressions { } - def patmatchPat { + def patmatchPat: Unit = { lazy val Z1 = { println("forced <z1>"); "lazy Z1" } print("lazy val in case: ") val t: Option[String] = Some("lazy Z1") @@ -44,7 +44,7 @@ object TestExpressions { } } - def ifcond { + def ifcond: Unit = { lazy val z1 = { println("forced <z1>"); "lazy z1" } print("lazy val in if condition: ") if (z1 == "lazy z1") @@ -56,7 +56,7 @@ object TestExpressions { lazy val LazyField = { println("forced LazyField"); "LazyField" } - def testPatMatchField { + def testPatMatchField: Unit = { print("lazy val in pattern: ") val t: Option[String] = Some("LazyField") t match { @@ -69,7 +69,7 @@ object TestExpressions { } lazy val (x, y) = ({print("x"); "x"}, {print("y"); "y"}) - def testPatLazyVal { + def testPatLazyVal: Unit = { println("lazy val with patterns:") print("x and y: ") println("(" + x + ", " + y + ")") @@ -78,7 +78,7 @@ object TestExpressions { println("(" + x1 + ", " + y1 + ")") } - def test { + def test: Unit = { patmatchScrut patmatchCase patmatchPat |