diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/implicits.scala | 19 |
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) + + } + + }) + + } + +} |