aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t6220.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/t6220.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/t6220.scala')
-rw-r--r--tests/pending/run/t6220.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pending/run/t6220.scala b/tests/pending/run/t6220.scala
index 834b692f4..85995e1ef 100644
--- a/tests/pending/run/t6220.scala
+++ b/tests/pending/run/t6220.scala
@@ -4,7 +4,7 @@ object Test extends App {
// finds an int x such that improved(x) differs in the first bit to improved(0),
// which is the worst case for the HashTrieSet
- def findWorstCaseInts() {
+ def findWorstCaseInts(): Unit = {
// copy of improve from HashSet
def improve(hcode: Int) = {
var h: Int = hcode + ~(hcode << 9)
@@ -63,7 +63,7 @@ object Test extends App {
package scala.collection.immutable {
object StructureTests {
- def printStructure(x:HashSet[_], prefix:String="") {
+ def printStructure(x:HashSet[_], prefix:String=""): Unit = {
x match {
case m:HashSet.HashTrieSet[_] =>
println(prefix+m.getClass.getSimpleName + " " + m.size)
@@ -77,7 +77,7 @@ package scala.collection.immutable {
}
}
- def validate(x:HashSet[_]) {
+ def validate(x:HashSet[_]): Unit = {
x match {
case m:HashSet.HashTrieSet[_] =>
require(m.elems.size>1 || (m.elems.size==1 && m.elems(0).isInstanceOf[HashSet.HashTrieSet[_]]))