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
traitS[T] extends (T=>T):defapply(x: T) =???extension (x: T) defshow:StringgivenS[Int]:extension (x: Int) defshow= x.toString
println(10.show)
^^The conversion given_S_Int.type will not be applied implicitly here in Scala3 because only implicit methods and instances of Conversionclasswill continue to work asimplicit views.
Expectation
It is not clear to me why the conversion should be considered here (at the extension method application). This warning should not be emitted, especially when not in -source:3.0-migration ; see #9998
Workaround
If we remove extends (T => T) the warning disappears.
The text was updated successfully, but these errors were encountered:
Minimized code and Output
Expectation
It is not clear to me why the conversion should be considered here (at the extension method application). This warning should not be emitted, especially when not in -source:3.0-migration ; see #9998
Workaround
If we remove
extends (T => T)
the warning disappears.The text was updated successfully, but these errors were encountered: