I have found 3.1.2 does not compile some code that was working with 3.1.1 and before.
Reduced the issue to the following snippet:
It works if you run it with Scala 3.1.1, but it fails to work on a String with 3.1.2RC1 (but also with the final release not available yet on Scastie).
@nicolasstucki maybe this is something you can help me understand?