diff options
author | Martin Odersky <odersky@gmail.com> | 2009-10-21 17:06:26 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-10-21 17:06:26 +0000 |
commit | 07a9de6b12c25473060268664911de3d116ab043 (patch) | |
tree | 4883b5548082c168cec19157d62a94c6ddfca841 /test | |
parent | 6bb3d2ceca8706180bb715f3c390cbcb891f5536 (diff) | |
download | scala-07a9de6b12c25473060268664911de3d116ab043.tar.gz scala-07a9de6b12c25473060268664911de3d116ab043.tar.bz2 scala-07a9de6b12c25473060268664911de3d116ab043.zip |
Fixed #2429.
Diffstat (limited to 'test')
-rwxr-xr-x | test/files/pos/t2429.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/files/pos/t2429.scala b/test/files/pos/t2429.scala new file mode 100755 index 0000000000..266baa3c2c --- /dev/null +++ b/test/files/pos/t2429.scala @@ -0,0 +1,21 @@ +object Msg { + trait T + + trait TSeq + + object TSeq { + implicit def fromSeq(s: Seq[T]): TSeq = error("stub") + } + + def render { + val msgs: TSeq = (List[(Any, Any)]().flatMap { + case (a, b) => { + a match { + case _ => b match { + case _ => error("stub") + } + } + } + } /*: Seq[T] Adding this type annotation avoids the compile error.*/) + } +} |