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
Although this would be a good move it is a substantial behaviour change in which diagnostics we report, and this will have a big impact on the test suite.
It means that the tests will need to have writes to each member that is supposed to be bad, which of course requires many changes. However, when we do identify writes we prefer placing diagnostics on the writes rather than on the field type itself. So by modifying the tests to have writes we're also making those diagnostics not show up on the members.
It will be a big change to the tests file, but we should re-evaluate where exactly we want our diagnostics. Perhaps this change would be OK.
If a tree falls in the woods and no one is around to hear it, does it make a sound? It does not.
There is no mutability here, because there are no writes to
m_whatever
(protected readonly
can't be set from derived constructors). It is the same as:which we have always shrugged at.
It would be a minor simplification of the code to not report a diagnostic here, and it'd be more consistent.
(That doesn't mean it's realistic, and ideally another diagnostic fires for this code (indeed there are built-in ones))
The text was updated successfully, but these errors were encountered: