Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Following code works with Scala 2.12.8 but it doesn't work with 2.13.0.
Scala 2.12.8 is ok:
But Scala 2.13.0 breaks (it will truncate value and reduces scale, hence error):
It breaks first time on on step
If we can find a set of symmetrizing operations for
So we can label this as "not a bug", I guess, but the entire design is kind of a bug. Everything relating to the current design forces tradeoffs that result in surprising behavior like the above.
There is second problem with
Which is probably caused by wrong math context with
I can't stress enough that this change with 2.13 is highly surprising, even though orinal implementation with 2.11 and 2.12 has been broken.
P.S. Above code works with 2.12.8