Records: Warn if a get-only property is unused
See original GitHub issuepublic record A
{
public string P1 { get; }
}
There should be a warning on P1 that it is never set.
See @jnm2’s comment (https://github.com/dotnet/roslyn/issues/47666#issuecomment-692054797)
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
getters should not be used for side effects" warning - ...
However, when I am trying to initialize accelerometer processes, I get the following warning: "Property access result unused - getters ...
Read more >Coverage: Find unused JavaScript and CSS
Record if you want to see what code is used after interacting with the page. Click Stop Instrumenting Coverage And Show Results Stop...
Read more >52.245-1 Government Property.
Property records means the records created and maintained by the contractor ... cost if desired or make reasonable efforts to return unused property...
Read more >Property Fraud Alert | Sumter County Clerk of Courts
With Property Fraud Alert, subscribers will be notified when the name they have submitted is used in any recording activities within the Recorder's...
Read more >required modifier - C# Reference
In this article. The required modifier indicates that the field or property it's applied to must be initialized by an object initializer.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
(IIRC strict mode is undocumented, but the new warning level 5 will include it entirely.)
Sure @Youssef1313 , looping in @jcouv from Compiler team