You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Constraints<T> over a record from another assembly emits an action for <Clone>$ #91
[Constraints<Order>], where Order is a record declared in another assembly, generates an action for the compiler-generated <Clone>$ method, and the generated code does not compile. Compiler-generated members (unspeakable names) should be skipped.
Found while compiling the README snippets; not fixed there.
Still reproduces after the dependency bump (#92). A Lib/App pair with [Constraints<Order>] over a record from another assembly generates new EntityAction<Order>("<Clone>$", null, (x, _) => x.<Clone>$()), which fails with CS1001/CS1056.
Likely cause: the member filter in ActionsMember (ConstraintGenerator.cs, around line 502) relies on IsImplicitlyDeclared, which is false for symbols read from metadata. Adding a CanBeReferencedByName check should skip compiler-generated members like <Clone>$.
Reproduced with a test that compiles a Lib assembly and references it as metadata: the generated source contained <Clone>$. Your diagnosis was right. IsImplicitlyDeclared is false for metadata symbols, so the method filter in ActionsMember let it through. Adding !method.CanBeReferencedByName fixes it. PR: #99
Activity
Bump every dependency to its latest version (#92)
Mpdreamz commentedon Nov 12, 2026
Still reproduces after the dependency bump (#92). A Lib/App pair with
[Constraints<Order>]over a record from another assembly generatesnew EntityAction<Order>("<Clone>$", null, (x, _) => x.<Clone>$()), which fails with CS1001/CS1056.Likely cause: the member filter in
ActionsMember(ConstraintGenerator.cs, around line 502) relies onIsImplicitlyDeclared, which is false for symbols read from metadata. Adding aCanBeReferencedByNamecheck should skip compiler-generated members like<Clone>$.🤖 Generated with Claude Code
Mpdreamz commentedon Nov 19, 2026
Reproduced with a test that compiles a Lib assembly and references it as metadata: the generated source contained
<Clone>$. Your diagnosis was right.IsImplicitlyDeclaredis false for metadata symbols, so the method filter inActionsMemberlet it through. Adding!method.CanBeReferencedByNamefixes it. PR: #99