summaryrefslogtreecommitdiff
path: root/test/files/pos/t2429.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t2429.scala')
-rwxr-xr-xtest/files/pos/t2429.scala21
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.*/)
+ }
+}