summaryrefslogtreecommitdiff
path: root/test/files/run/bug2512.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/bug2512.scala')
-rw-r--r--test/files/run/bug2512.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/files/run/bug2512.scala b/test/files/run/bug2512.scala
index 514b26650f..8166839a9a 100644
--- a/test/files/run/bug2512.scala
+++ b/test/files/run/bug2512.scala
@@ -1,12 +1,11 @@
import scala.tools.nsc.util.HashSet
-object Test
-{
+object Test {
val runs = 10000
class Bop
def main(args: Array[String]): Unit = {
- val set: HashSet[Bop] = new HashSet("Bop", 16)
+ val set: HashSet[Bop] = HashSet("Bop", 16)
(1 to runs).toList foreach (_ => set addEntry new Bop)
assert(runs == set.size && set.size == set.iterator.length)