8000 Fix #79: Add test · szeiger/scala@049cb47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 049cb47

Browse files
committed
Fix scala#79: Add test
scala#79 is fixed by scala#2435 in the dotty repo. This PR contains the test that failed.
1 parent cbfc5a8 commit 049cb47

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/scala/strawman/collection/immutable/LazyList.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ object LazyList extends IterableFactory[LazyList] {
6666

6767
def newBuilder[A]: Builder[A, LazyList[A]] = ???
6868

69-
def empty[A <: Any]: LazyList[A] = new LazyList[A](None)
69+
def empty[A]: LazyList[A] = new LazyList[A](None)
7070
}

src/test/scala/strawman/collection/test/Test.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ class StrawmanTest {
248248
val ys15: Seq[(Int, Boolean)] = xs15
249249
val xs16 = xs.reverse
250250
val ys16: Seq[Int] = xs16
251+
val ys17 = LazyList.empty ++ LazyList.empty
252+
val ys18: LazyList[Nothing] = ys17
251253
println("-------")
252254
println(x1)
253255
println(x2)

0 commit comments

Comments
 (0)
0