GNOME Bugzilla – Bug 733288
Fast VAPI generation can contain references to private methods
Last modified: 2018-05-22 15:13:01 UTC
If you have a const delegate that refers to a private method this reference will show up in the .vapi. For example: --- public delegate void Callback (); public class Foo { public const Callback cb = private_function; private void private_function () { } } --- $ valac --fast-vapi=foo.vapi foo.vala Will generate: --- /* foo.vapi generated by valac 0.24.0, do not modify. */ using GLib; public class Foo { public const Callback cb = private_function; public Foo (); } public delegate void Callback (); --- Which doesn't work because 'private_function' is not defined.
-- 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/vala/issues/461.