diff options
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.*/) + } +} |