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/t8199.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/t8199.scala')
-rw-r--r-- | tests/pending/run/t8199.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pending/run/t8199.scala b/tests/pending/run/t8199.scala index 50994159e..265931cca 100644 --- a/tests/pending/run/t8199.scala +++ b/tests/pending/run/t8199.scala @@ -35,14 +35,14 @@ trait trt01234567890 { def x = Test.checkCallerImplClassName() } } object Test extends App { - def check(c: Class[_]) { + def check(c: Class[_]): Unit = { checkClassName(c.getName) } - def checkClassName(name: String) { + def checkClassName(name: String): Unit = { val defaultMaxClassFileLength = 255 assert((name + ".class").length <= defaultMaxClassFileLength, name) } - def checkCallerImplClassName() { + def checkCallerImplClassName(): Unit = { val name = Thread.currentThread.getStackTrace.apply(2).getClassName assert(name.contains("$class")) Test.checkClassName(name) |