Skip to content

Commit

Permalink
Fix scala#79: Add test
Browse files Browse the repository at this point in the history
scala#79 is fixed by scala#2435 in the dotty repo. This PR contains the test that failed.
  • Loading branch information
odersky committed May 15, 2017
1 parent cbfc5a8 commit 049cb47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -66,5 +66,5 @@ object LazyList extends IterableFactory[LazyList] {

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

def empty[A <: Any]: LazyList[A] = new LazyList[A](None)
def empty[A]: LazyList[A] = new LazyList[A](None)
}
2 changes: 2 additions & 0 deletions src/test/scala/strawman/collection/test/Test.scala
Expand Up @@ -248,6 +248,8 @@ class StrawmanTest {
val ys15: Seq[(Int, Boolean)] = xs15
val xs16 = xs.reverse
val ys16: Seq[Int] = xs16
val ys17 = LazyList.empty ++ LazyList.empty
val ys18: LazyList[Nothing] = ys17
println("-------")
println(x1)
println(x2)
Expand Down

0 comments on commit 049cb47

Please sign in to comment.