class Test {
}
//Main method
Test ccc = null;
string sss = null;
I am wondering why do I get a warning when I assign null to a string or to a class? Both are perfectly nullable. If I add the nullable ? annotation and say
Test? ccc = null;
string? sss = null;
then the warning will go away. But internally nothing has changed. What is the point of this?