summaryrefslogtreecommitdiff
path: root/test/files/neg/implicits.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/implicits.scala')
-rw-r--r--test/files/neg/implicits.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/neg/implicits.scala b/test/files/neg/implicits.scala
index 056e0be6ca..be85029660 100644
--- a/test/files/neg/implicits.scala
+++ b/test/files/neg/implicits.scala
@@ -37,3 +37,22 @@ object test2 {
def foo(x: Int) = 3
foo(set)
}
+
+// #2180
+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)
+
+ }
+
+ })
+
+ }
+
+}