Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s.c.LinearSeq and s.c.i.LinearSeq have infinite recursion in their isEmpty/lengthCompare methods #11811

Closed
joshlemer opened this issue Nov 26, 2019 · 1 comment

Comments

@joshlemer
Copy link

scala> new collection.immutable.LinearSeq[Int]{}.toString

  .....
  at $anon$1.isEmpty(<console>:1)
  at scala.collection.LinearSeqOps.loop$1(LinearSeq.scala:75)
  at scala.collection.LinearSeqOps.lengthCompare(LinearSeq.scala:82)
  at scala.collection.LinearSeqOps.lengthCompare$(LinearSeq.scala:72)
  at $anon$1.lengthCompare(<console>:1)
  at scala.collection.SeqOps.isEmpty(Seq.scala:819)
  at scala.collection.SeqOps.isEmpty$(Seq.scala:819)
  at $anon$1.isEmpty(<console>:1)
  at scala.collection.LinearSeqOps.loop$1(LinearSeq.scala:75)
  at scala.collection.LinearSeqOps.lengthCompare(LinearSeq.scala:82)
  at scala.collection.LinearSeqOps.lengthCompare$(LinearSeq.scala:72)
  at $anon$1.lengthCompare(<console>:1)
  at scala.collection.SeqOps.isEmpty(Seq.scala:819)
  at scala.collection.SeqOps.isEmpty$(Seq.scala:819)
  at $anon$1.isEmpty(<console>:1)
  at scala.collection.LinearSeqOps.loop$1(LinearSeq.scala:75)
  at scala.collection.LinearSeqOps.lengthCompare(LinearSeq.scala:82)
  at scala.collection.LinearSeqOps.lengthCompare$(LinearSeq.scala:72)
  at $anon$1.lengthCompare(<console>:1)
  at scala.collection.SeqOps.isEmpty(Seq.scala:819)
  at scala.collection.SeqOps.isEmpty$(Seq.scala:819)
  at $anon$1.isEmpty(<console>:1)
  at scala.collection.LinearSeqOps.loop$1(LinearSeq.scala:75)
  at scala.collection.LinearSeqOps.lengthCompare(LinearSeq.scala:82)
@joshlemer
Copy link
Author

Whoops, this is duplicate of #11697

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant