summaryrefslogtreecommitdiff
path: root/test/files/run/t6223.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6223.scala')
-rw-r--r--test/files/run/t6223.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/t6223.scala b/test/files/run/t6223.scala
index 4ab7c832e6..0996ea1c45 100644
--- a/test/files/run/t6223.scala
+++ b/test/files/run/t6223.scala
@@ -5,7 +5,7 @@ class Foo[@specialized(Int) A](a:A) {
object Test {
def main(args:Array[String]) {
val f = new Foo(333)
- val ms = f.getClass().getDeclaredMethods()
- ms.foreach(m => println(m.getName))
+ val ms = f.getClass().getDeclaredMethods().map(_.getName).sorted
+ ms.foreach(println)
}
}