summaryrefslogtreecommitdiff
path: root/test/files/neg/t2180.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t2180.scala')
-rw-r--r--test/files/neg/t2180.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/t2180.scala b/test/files/neg/t2180.scala
new file mode 100644
index 0000000000..54a9e49c1c
--- /dev/null
+++ b/test/files/neg/t2180.scala
@@ -0,0 +1,9 @@
+class Mxml {
+ private def processChildren( children:Seq[Any] ):List[Mxml] = {
+ children.toList.flatMap ( e => {
+ e match {
+ case s:scala.collection.Traversable[_] => s case a => List(a)
+ }
+ })
+ }
+}