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/t6677.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/t6677.scala')
-rw-r--r-- | tests/pending/run/t6677.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/pending/run/t6677.scala b/tests/pending/run/t6677.scala index e6eaf6a49..d8b012623 100644 --- a/tests/pending/run/t6677.scala +++ b/tests/pending/run/t6677.scala @@ -1,18 +1,18 @@ class Test { val cm: reflect.runtime.universe.Mirror = reflect.runtime.currentMirror - def error { + def error: Unit = { new cm.universe.Traverser // java.lang.VerifyError: (class: Test, method: error signature: ()V) Incompatible object argument for function call } - def okay1 { + def okay1: Unit = { val cm: reflect.runtime.universe.Mirror = reflect.runtime.currentMirror new cm.universe.Traverser } - def okay2 { + def okay2: Unit = { val cm: reflect.runtime.universe.Mirror = reflect.runtime.currentMirror val u: reflect.runtime.universe.type = cm.universe new u.Traverser @@ -20,7 +20,7 @@ class Test { } object Test { - def main(args: Array[String]) { + def main(args: Array[String]): Unit = { new Test().error new Test().okay1 new Test().okay2 |