I've just enabled the new nullable reference types feature.
In this example, myObj is nullable. But shouldn't the compiler understand that myObj won't be null in this case, since I'm testing for it in the if clause?

I'm using .NET Core 3.0 in VS 2019.
I've just enabled the new nullable reference types feature.
In this example,
myObjis nullable. But shouldn't the compiler understand that myObj won't be null in this case, since I'm testing for it in the if clause?I'm using .NET Core 3.0 in VS 2019.