diff options
author | Martin Odersky <odersky@gmail.com> | 2007-03-13 15:19:42 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-03-13 15:19:42 +0000 |
commit | 0eb18771918f5fd7659ad747126e97452c41c748 (patch) | |
tree | dab8e5556a917585027cacfdc0d18e73b983b38e /test/files/run | |
parent | bc89afad4f7b7516b16037685a3b70a862858596 (diff) | |
download | scala-0eb18771918f5fd7659ad747126e97452c41c748.tar.gz scala-0eb18771918f5fd7659ad747126e97452c41c748.tar.bz2 scala-0eb18771918f5fd7659ad747126e97452c41c748.zip |
fixed bug 1000 and david pollaks problem wrt tu...
fixed bug 1000 and david pollaks problem wrt tupling
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug995.check | 1 | ||||
-rw-r--r-- | test/files/run/bug995.scala | 12 |
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))) +} |