dotnet/roslyn
Nullability no longer honors null check when it is also an assignment
Aberta
#44.461 aberto em 21 de mai. de 2020
Area-CompilersBugFeature - Nullable Reference Typeshelp 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
Version Used: master (19 May 2020)
Steps to Reproduce:
- Do assignment of the null check expression inside an if statement.
Expected Behavior: Object was already checked for null, nullability should no longer warn "Possible null reference".
Actual Behavior: Nullability still warn "Possible null reference" regardless of the previous null check.
cc @jaredpar @cston @jcouv