aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t3996.scala
blob: b40b3ec111f6748c29ab1fdb7ce3b43fbb7c4916 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// should not result in a stack overflow
object Test {
  def main(args: Array[String]): Unit = {
    import collection.mutable.LinkedList
    val l = new LinkedList[Int]() ++ (0 until 10000)
    assert(l.length == 10000)
  }
}