mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
A constructor store to an auto-property's backing field is expressible after the field declaration is gone in one of two ways: ReplaceBackingFieldUsage rewrites it to an assignment of a setter-less property, or TransformFieldAndConstructorInitializers lifts it into a property initializer. A deconstruction target assigns several members at once, so it can never take the second route, and a property that kept a setter would invoke that setter instead of storing the field. Without the restriction the declaration is removed while the store keeps referencing it. Assisted-by: Claude:claude-opus-5:Claude Codepull/4130/head
1 changed files with 29 additions and 4 deletions
Loading…
Reference in new issue