Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overloads taking generic instance types as parameters generates invalid code #164

Closed
adrianoc opened this issue Mar 12, 2022 · 0 comments
Closed
Labels
🐛 bug Something isn't working bug_reporter

Comments

@adrianoc
Copy link
Owner

adrianoc commented Mar 12, 2022

Error

Instead of one method for each overload, we end up with a single method with all parameters from the overloads

Associated snippet:

class C<T>
{
	private void M(C<int> si) {}
	private void M(C<string> ss) {}
}
@adrianoc adrianoc added bug_reporter 🐛 bug Something isn't working labels Mar 12, 2022
@adrianoc adrianoc changed the title Overloads taking Span<T> and taking same number of parameters generates invalid code Overloads taking generic instance types generates invalid code Mar 14, 2022
@adrianoc adrianoc changed the title Overloads taking generic instance types generates invalid code Overloads taking generic instance types as parameters generates invalid code Mar 16, 2022
adrianoc added a commit that referenced this issue Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working bug_reporter
Projects
None yet
Development

No branches or pull requests

1 participant