aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t4859.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/t4859.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/t4859.scala')
-rw-r--r--tests/pending/run/t4859.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pending/run/t4859.scala b/tests/pending/run/t4859.scala
index 3c20cea98..8b354ca94 100644
--- a/tests/pending/run/t4859.scala
+++ b/tests/pending/run/t4859.scala
@@ -7,14 +7,14 @@ object Outer {
println("Outer")
object Inner {
println("Inner")
- def i {
+ def i: Unit = {
println("Inner.i")
}
}
}
object Test {
- def main(args: Array[String]) {
+ def main(args: Array[String]): Unit = {
Outer.Inner.i // we still don't initialize Outer here (but should we?)
{println("About to reference Inner.i"); Outer}.Inner.i // Outer will be initialized.