Skip to content

Skip <Clone>$ when inferring actions for a record from another assembly - #99

Merged
Mpdreamz merged 1 commit into
mainfrom
fix/91-clone-action
Nov 19, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
fix/91-clone-action

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

Closes #91

The action filter relied on IsImplicitlyDeclared, which is false for symbols read from metadata, so <Clone>$ became an EntityAction (CS1001/CS1056). It now also requires CanBeReferencedByName.

Test: A_record_from_another_assembly_gets_no_action_for_its_compiler_generated_members compiles a Lib assembly and references it as metadata; it failed before the fix and passes now. SourceGenerators tests pass on net10.0 (net11.0 not run).

🤖 Generated with Claude Code

…from metadata types

IsImplicitlyDeclared is false for symbols read from another assembly, so the
record's <Clone>$ became an EntityAction that does not compile.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Mpdreamz Mpdreamz added the bug A defect fixed (patch) label Nov 19, 2026
@Mpdreamz
Mpdreamz merged commit 00dc5b4 into main Nov 19, 2026
9 of 10 checks passed
@Mpdreamz
Mpdreamz deleted the fix/91-clone-action branch November 19, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A defect fixed (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Constraints<T> over a record from another assembly emits an action for <Clone>$

1 participant