dotnet/roslyn
Properties with inaccesible access methods shouldn't be visible
Aberta
#71.363 aberto em 19 de dez. de 2023
Area-IDEIntelliSense-Completionhelp wanted
Métricas do repositório
- Stars
- (20.414 estrelas)
- Métricas de merge de PR
- (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)
Description
Steps to Reproduce: Define property like
public Predicate<T>? Selector { protected get; init; }
or even without get method,
Expected Behavior: It shouldn't show by IDE in cases where you can't call these accessors.
Actual Behavior: This member is always visible.
Also, CA1044 diagnostic interpreted as warning by default looks bit annoying. I suggest to interpret it like suggestion by default.