Open som-snytt opened 3 years ago
Even better, don't go looking to add ne and other AnyRef members to my type
This is a design question not strictly in the scope of this ticket, but perhaps we could work out some rule where we reject AnyRef
not only when it is the target type of the conversion, but also when it is the type where the method being searched for is defined. I don't recall if that has ever been proposed before. If that question interests somebody, we should probably discuss it elsewhere.
reproduction steps
using Scala? Yes.
problem
The linter should notice the use of an enclosing implicit thing, as it does for an enclosing method.
Even better, don't go looking to add
ne
and other AnyRef members to my type. One could argue that it's just a form of boxing, but I don't argue that.