Open OndrejSpanel opened 1 year ago
The strange part to me is that the implicit conversion is no longer ambiguous when you switch the parameter to by-value.
There is a glitch where Boolean ops are defined in the spec as by-name for purposes of laziness but do not actually have that signature. Also in Scala 2, f(=>A)
is less specific than f(A)
, but not in 3. Perhaps the specificity of the results of the conversions determines the choice.
Reproduction steps
Scala version: 2.13.10
Problem
Produces error "value || is not a member of C".
Note:
objToBool
is removed||
is by valueOrObj
is not generic