For the following code:
bool assertTest(int? n1, int? n2) {
return (n1 == null) || (n1 != null && n2 != null);
}
there is a warning at n1 != null
saying The operand can't be null, so the condition is always true.
Why does this warning show up? n1 is obviously nullable.