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

Fix overload check #20

Conversation

jkurdek
Copy link
Collaborator

@jkurdek jkurdek commented Apr 9, 2024

No description provided.

@@ -4,7 +4,7 @@ namespace BindingSourceGen.UnitTests;

public class DiagnosticsTests
{
[Fact]
[Fact(Skip = "Improve detecting overloads")]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with the test? Does it report wrong diagnostic?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we based our overload detection on checking the type of the arguments now it will report that we are using a wrong overload as the second argument is not lambda.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. It's acceptable that it reports BSG0004 for now. Let's deal with this later and merge it as is.

@simonrozsival simonrozsival merged commit 8eb99d9 into simonrozsival:binding-source-generator Apr 9, 2024
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants