summaryrefslogtreecommitdiff
path: root/test/files/run/t4930.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t4930.scala')
-rw-r--r--test/files/run/t4930.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t4930.scala b/test/files/run/t4930.scala
new file mode 100644
index 0000000000..775f627948
--- /dev/null
+++ b/test/files/run/t4930.scala
@@ -0,0 +1,11 @@
+import collection.immutable.SortedMap
+
+object Test {
+ implicit val ord: Ordering[Array[Byte]] = Ordering.by((_: Array[Byte]).toIterable)
+
+ def main(args: Array[String]): Unit = {
+ val m = SortedMap(Array[Byte](1) -> 0)
+ println(m.to(Array[Byte](1)) flatMap (_._1.mkString))
+ println(m.from(Array[Byte](1)) flatMap (_._1.mkString))
+ }
+}