Skip to content

Fix overload check#20

Merged
simonrozsival merged 2 commits into
simonrozsival:binding-source-generatorfrom
jkurdek:fix-overload-check
Apr 9, 2024
Merged

Fix overload check#20
simonrozsival merged 2 commits into
simonrozsival:binding-source-generatorfrom
jkurdek:fix-overload-check

Conversation

@jkurdek
Copy link
Copy Markdown
Collaborator

@jkurdek jkurdek commented Apr 9, 2024

No description provided.

public class DiagnosticsTests
{
[Fact]
[Fact(Skip = "Improve detecting overloads")]
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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