-
Notifications
You must be signed in to change notification settings - Fork 243
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
Use of bug in cfor
macro
#1225
Comments
After staring and printlning for an hour I believe the situation is slightly different. My opinion is, that the fix in dotty actually fixes a bug in the |
The test broke with the update of scala 3.3.0 (typelevel#1225). However the old while loop did *not* capture the var so always created List(3,3,3). So it tested that the implementation is actually *wrong*. I changed the test to now use a fixed List.
Turned out to be not that straight forward (see closed PR). Maybe someone comes up with a compatible solution. |
Out of curiosity, is this why I saw cfor unit test fail when I tried a spire build with 3.3.2?
|
Yes. |
How was the unit test introduced in the first place? |
The
cfor
macro accidentally generated the desired code by using a bug in beta-reduction. This bug will be patched scala/scala3#16390 andcfor
will need to be updated.See dotty-staging/spire@7f630c0...99ea909#diff-9cd0f3a9df06a2589472aa8dc960fd2a65a2b65f2f8c257addda1c86ebc31469
The text was updated successfully, but these errors were encountered: