ulrichb/ImplicitNullability

Incorrect behavior for Implicit nullability v4.9.0.13340193

zyrianovdv opened this issue · 1 comments

public class Class
{
    public void Method1([CanBeNull] string value) => Echo(value); //Correct behavior
    public void Method2([CanBeNull] string value = null) => Echo(value); //Should warn "Possible 'null' assignment to entity with 'NotNull' attribute"
    private static void Echo(string value) => Console.WriteLine(value);
}

image

Hi @DmitryZyr,

This is a ReSharper issue and I reported it as https://youtrack.jetbrains.com/issue/RSRP-476854.