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

Exception if code declares both generic and non generic version of a method #275

Open
adrianoc opened this issue Mar 28, 2024 · 0 comments
Labels
🐛 bug Something isn't working fixed-in-staging
Milestone

Comments

@adrianoc
Copy link
Owner

class Foo
{
	void M<T>() {}
	void M() {}

	public void Bar() => M<string>();
}

note that this also happens with multiple generic methods:

class Foo
{
	void M<T>() {}
	void M<T,S>() {}	

	public void Bar() => M<string>();
}
@adrianoc adrianoc added the 🐛 bug Something isn't working label Mar 28, 2024
@adrianoc adrianoc added this to the 2.11 milestone Mar 29, 2024
@adrianoc adrianoc added wip Work In Progress fixed-in-dev-branch and removed wip Work In Progress labels Apr 4, 2024
adrianoc pushed a commit that referenced this issue Apr 10, 2024
previous implementation was not taking 'type parameters'  into account while tracking generated methods leading to crashes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working fixed-in-staging
Projects
None yet
Development

No branches or pull requests

1 participant