You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingSystem;classBase{protectedvirtualvoidM(string?str){}}classDerived:Base{protectedoverridevoidM(string?str){ArgumentNullException.ThrowIfNull(str);// process str}}
Actual Behavior:
Warns on ArgumentNullException.ThrowIfNull(str);
Expected Behavior:
In my opinion, no warning - we're locked into the nullable argument because of the virtual method.
The text was updated successfully, but these errors were encountered:
Product and Version Used:
Roslynator 4.12.2
Steps to Reproduce:
Actual Behavior:
Warns on
ArgumentNullException.ThrowIfNull(str);
Expected Behavior:
In my opinion, no warning - we're locked into the nullable argument because of the virtual method.
The text was updated successfully, but these errors were encountered: