Closed vladimirkl closed 2 weeks ago
On 2.13.13, it requires -Xsource:3-cross
.
On 2.13.14, the check in Typer is not helpful: it ignores the undesired conversion but does not try the desired one.
Do you mean that Typer has a bug in 2.13.14?
yes, it's a bug on 2.13.14.
Reproduction steps
Scala version: 2.13.14 with -Xsource:3 enabled
Problem
This example compiles perfectly using Scala 2.13.12 with -Xsource:3 enabled. Starting with 2.13.13 it fails with error above. Adding -Xsource-features:any2stringadd doesn't help - it just fails with
value + is not a member of Money
error. Renaming+
to any other identifier fixes the issue.