Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Generate API overloads for delegate-based setups #31

Open
kzu opened this issue Oct 8, 2018 · 0 comments
Open

Generate API overloads for delegate-based setups #31

kzu opened this issue Oct 8, 2018 · 0 comments

Comments

@kzu
Copy link
Member

kzu commented Oct 8, 2018

We currently provide an autofix that will add the generic delegate type to the Setup<T> call,
but it would be even better if the generic argument wasn't even needed. This could be achieved
by just generating additional overloads of Setup via extension methods.

Since overload resolution is performed on parameter types (and not return value type type), there
may be chances of conflicts in generated code. Maybe in those cases the type of the delegate is
just required to disambiguate?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant