non-null mode and null-terminated constant arrays
The null checker (--enable-experimental-non-null
) complains about a common pattern:
const OptionEntry[] entries = {
{ null }
};
void main(string[] args) {
}
valdo.vala:2.7-2.10: error: Expected initializer of type `string' but got `null'
{ null }
^^^^
Compilation failed: 1 error(s), 0 warning(s)
Edited by Princeton Ferro