Local functions don't report warnings for NotNull/NotNullWhen/NotNullIfNotNull #47896
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Bug
Feature - Nullable Reference Types
Nullable Reference Types
Milestone
Version Used: d148f06
Steps to Reproduce:
Expected Behavior: Warnings on both member methods and local functions with
[NotNull]
parametersActual Behavior: No warning on local function
We need to call functions like enforceNotNull, enforceMemberNotNull etc. here:
roslyn/src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs
Line 2525 in 7e89bce
The text was updated successfully, but these errors were encountered: