8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbfc5a8 commit 049cb47Copy full SHA for 049cb47
src/main/scala/strawman/collection/immutable/LazyList.scala
@@ -66,5 +66,5 @@ object LazyList extends IterableFactory[LazyList] {
66
67
def newBuilder[A]: Builder[A, LazyList[A]] = ???
68
69
- def empty[A <: Any]: LazyList[A] = new LazyList[A](None)
+ def empty[A]: LazyList[A] = new LazyList[A](None)
70
}
src/test/scala/strawman/collection/test/Test.scala
@@ -248,6 +248,8 @@ class StrawmanTest {
248
val ys15: Seq[(Int, Boolean)] = xs15
249
val xs16 = xs.reverse
250
val ys16: Seq[Int] = xs16
251
+ val ys17 = LazyList.empty ++ LazyList.empty
252
+ val ys18: LazyList[Nothing] = ys17
253
println("-------")
254
println(x1)
255
println(x2)
0 commit comments