(allow-none) on a return value is broken
@gregier
Submitted by Garrett Regier Link to original bug (#752029)
Description
This can be seen in the regress tests, regress_test_ghash_null_return has the (allow-none) annotation on the return value but it does not get emitted to the gir. This is due to a broken check which is causing optional to be set instead which is invalid for return values.
https://git.gnome.org/browse/gobject-introspection/tree/tests/scanner/regress.c#n1212 https://git.gnome.org/browse/gobject-introspection/tree/tests/scanner/Regress-1.0-expected.gir#n5677