dotnet/roslyn
Nullability no longer honors null check when it is also an assignment
开放
#44,461 创建于 2020年5月21日
Area-CompilersBugFeature - Nullable Reference Typeshelp wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
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