Skip to content

Commit a1aacb9

Browse files
committed
Add test case
1 parent 30fa29a commit a1aacb9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/pos/strawman-i79.scala

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
object Empty
2+
extends App {
3+
4+
trait Iterable[+A]
5+
extends IterableOnce[A]
6+
7+
trait IterableOps[+A, +CC[X], +C] {
8+
def ++[B >: A](xs: IterableOnce[B]): CC[B] = ???
9+
}
10+
11+
trait IterableOnce[+A]
12+
13+
class LazyList[+A]()
14+
extends IterableOps[A, LazyList, LazyList[A]]
15+
with Iterable[A]
16+
17+
object LazyList {
18+
def empty[A <: Any]: LazyList[A] = new LazyList[A]()
19+
}
20+
21+
LazyList.empty ++ LazyList.empty
22+
}

0 commit comments

Comments
 (0)