GNOME Bugzilla – Bug 752029
(allow-none) on a return value is broken
Last modified: 2018-02-08 12:36:06 UTC
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
Created attachment 306945 [details] [review] scanner: Fix allow-none on return values The optional annotation was being applied which is invalid for return values.
Review of attachment 306945 [details] [review]: Hum...but isn't the default for return values to be nullable?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/136.