diff options
Diffstat (limited to 'test/files/pos/t2429.scala')
-rwxr-xr-x | test/files/pos/t2429.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/pos/t2429.scala b/test/files/pos/t2429.scala index 266baa3c2c..9b9cb89de7 100755 --- a/test/files/pos/t2429.scala +++ b/test/files/pos/t2429.scala @@ -19,3 +19,7 @@ object Msg { } /*: Seq[T] Adding this type annotation avoids the compile error.*/) } } +object Oops { + implicit def someImplicit(s: Seq[_]): String = error("stub") + def item: String = Nil map { case e: Any => e } +} |