C compile error when nullable string concat in non-null
string? nullstr(){
return null;
}
void main() {
string s = "qwe" + nullstr();
}
Error:
../v.vala:20: 17: error: invalid binary operation operands + ("char *" and "gchar *" {aka " char *"})
20 | string s = " qwe " + nullstr();
| ~~~~~ ^
| |
| char *
ninja: build stopped: sub command failed.
Error appears only with --enable-experimental-non-null
Expected behavior: vala compilation error when trying to concat string?
and string