Warn about not-checking null
@mpiechotka
Submitted by Maciej Marcin Piechotka Link to original bug (#595817)
Description
Vala should warn about not checking for null when transforming from G?
to G
.
I.e:
void f (Object o);
Object? o = something ();
f (o); // Should emit warning
o = something ();
if (o != null)
f (o); // Should not emit warning
o = something ();
if (o == null)
return;
f (o); // Should not emit warning
o = something ();
assert (o != null);
f (o); // Should not emit warning