diff options
author | Martin Odersky <odersky@gmail.com> | 2009-10-23 11:06:50 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-10-23 11:06:50 +0000 |
commit | 42a111ba41ce2f551d56ccde8ca878f1da27a0b4 (patch) | |
tree | 02a09563dac38f4fab691c67b697b2de8c48ddcc /test/files/pos | |
parent | 92cfcd43997dc090edc35029ada027ed986a25e2 (diff) | |
download | scala-42a111ba41ce2f551d56ccde8ca878f1da27a0b4.tar.gz scala-42a111ba41ce2f551d56ccde8ca878f1da27a0b4.tar.bz2 scala-42a111ba41ce2f551d56ccde8ca878f1da27a0b4.zip |
fixed #2428 for good.
Diffstat (limited to 'test/files/pos')
-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 } +} |