Skip to content

test: fix misleading comment in Class_21 acceptance criteria - #3

Draft
teneko wants to merge 1 commit into
mainfrom
chore/tidy-up
Draft

teneko wants to merge 1 commit into
mainfrom
chore/tidy-up

Conversation

@teneko

@teneko teneko commented Oct 9, 2026

Copy link
Copy Markdown
Member

What

Replaces the comment in Class_21_AcceptanceCriterias (ref/Tenekon.MethodOverloads.AcceptanceCriterias/Class_21.cs).

Before:

// Diagnostics are expected for the cases above, but MatcherSignature now emits a receiver-only overload.

After:

// No overloads expected: every case above only triggers a diagnostic (MatcherSignature: int vs. string → MOG002).

Why

The second half of the old comment did not match the generator's behavior. Class_21_Matcher.MatcherSignature(int m) does not match the target Class_21_Matched.MatcherSignature(string m) under TypeOnly matching, so no overload is emitted and MOG002 is reported instead. If an overload were emitted, the acceptance test would fail with "Extra", because Class_21_AcceptanceCriterias is intentionally empty.

Verified against the current generator, both in-memory (acceptance fixture) and via a real build of the acceptance project with the generator enabled: no MatcherSignature overload is generated.

Notes for reviewers

🤖 Generated with Claude Code

MatcherSignature does not emit an overload; the matcher (int) does not
match the target (string), so only MOG002 is reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant