Skip to content

Allow implicit conversions to have a parameter of singleton type? #876

@smarter

Description

@smarter

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:

We should either allow them or find a good replacement for them that can be automatized.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions