-
Notifications
You must be signed in to change notification settings - Fork 72
StrawmanTest.mainTest failing in Scala 2.13.0-M3 #308
Comments
or, hmm, maybe it is intermittent, there is a run currently in progress where collection-strawman already went green: https://scala-ci.typesafe.com/view/scala-2.13.x/job/scala-2.13.x-integrate-community-build/857/consoleFull we'll see how the next few runs go |
Did you change something about the evaluation of by-name right-associative operators? |
Yeah now I remember that one: scala/scala#5969 But the test should always fail with the new evaluation model. |
I failed to notice earlier that run 857 was manually triggered by Miles against a different 2.13 build. So yes, always failing. |
Hey @SethTisue! What should we do about that? Is this blocking you? |
it's not blocking me. I don't understand the issue, I don't know what you should do. but in general, this repo ought to compile, and tests pass, on whatever the latest 2.13 nightly is, since before long some descendant of that nightly will become 2.13.0-M3. (@szeiger?) |
The issue is that we have a test that checks the semantics of an operation ( |
👍 |
@szeiger I tried to make lazy val fibs: LazyList[Int] = 0 #:: 1 #:: fibs.zip(fibs.tail).map { case (prevPrev, prev) => prev + prevPrev } We get an infinite recursion. Is that expected? Note that on one hand, @odersky thinks that recursive lazy vals should not be supported (scala/scala3#1892 (comment)). On the other hand, being able to define the fibonacci sequence as shown above would be useful, in my opinion. |
here's an example recursive lazy val
the use of |
The Fibonacci example desugars to:
Since the receiver of a method call cannot be lazy, this will never work. We still need an extension method. The improvement by the new desugaring is that |
Fixed by scala/scala#6509 |
details at https://scala-ci.typesafe.com/view/scala-2.13.x/job/scala-2.13.x-integrate-community-build/856/consoleFull
doesn't seem to be intermittent (failed in both runs last night)
The text was updated successfully, but these errors were encountered: