-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
This is explicitly disallowed since f0d3487 the commit message says:
Reason for 2) is that we can do a much better caching for eligible implicits if we can widen singleton arguments in ViewProto. This leads to consicderable speedups in implicit search which seem to be hard to get without the restriction.
But implicit conversions on singletons seem to be a common pattern, see for example:
- https://github.com/molecule-labs/molecule/blob/master/molecule-core/src/main/scala/molecule/stream/IChan.scala#L807
- https://github.com/scalameta/scalameta/blob/master/scalahost/src/main/scala/scala/meta/internal/hosts/scalac/converters/ToMname.scala#L36
We should either allow them or find a good replacement for them that can be automatized.