Closed mwelsh1118 closed 3 years ago
The following auto-property will trigger IMM002, even though the property is immutable after the object is initialized:
public int Property { get; init; }
I can look at creating a Pull Request to address this if you'd like.
This is fixed in version 1.2.6, and adds another analyzer to catch 'this' reference escaping in the body of an init only property method.
Confirmed. Thanks for the quick turnaround!
The following auto-property will trigger IMM002, even though the property is immutable after the object is initialized:
I can look at creating a Pull Request to address this if you'd like.