You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|^|Result of implicit search forOrdering[Int] will change.
|Current result Foo.this.ord will be no longer eligible
| because it is not defined before the search position.
|Resultwithnewrules: scala.math.Ordering.Int.
|To opt into the new rules, compile with`-source future` or use
|the `scala.language.future` language import.
||To fix the problem without the language import, you could try one of the following:
|- use a `given ... with` clause asthe enclosing given,
|- rearrange definitions so that Foo.this.ord comes earlier,
|- use an explicit argument.
|This will be an error in Scala3.5 and later.
Expectation
This should actually be an error. Also, ideally I'd really like to enable the new behavior in my codebase, but -source future breaks too many things, can we add it to -source 3.6 instead?