summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/bug995.check1
-rw-r--r--test/files/run/bug995.scala12
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/bug995.check b/test/files/run/bug995.check
new file mode 100644
index 0000000000..f0f0e34bb3
--- /dev/null
+++ b/test/files/run/bug995.check
@@ -0,0 +1 @@
+Seq
diff --git a/test/files/run/bug995.scala b/test/files/run/bug995.scala
new file mode 100644
index 0000000000..f7f75b6a02
--- /dev/null
+++ b/test/files/run/bug995.scala
@@ -0,0 +1,12 @@
+object Test extends Application {
+ def foo(v: Any): String = v match {
+ case s: Seq[_] =>
+ "Seq"
+ // see Burak's hack in object Seq.unapplySeq
+ //case a: AnyRef if runtime.ScalaRunTime.isArray(a) =>
+ // "Array"
+ case _ =>
+ v.toString
+ }
+ Console.println(foo(Array(0)))
+}