GNOME Bugzilla – Bug 687142
Unable to assign to generic delegates with missing type arguments
Last modified: 2018-05-22 14:35:14 UTC
If you try to assign to a generic delegate without a type argument valac will emit an error: public delegate uint Foo<T> (T v); public static uint bar (string foo) { return GLib.str_hash (foo); } private static int main (string[] args) { Foo func = bar; return 0; } wtf.vala:8.7-8.16: error: Assignment: Cannot convert from `bar' to `Foo' Foo func = bar; ^^^^^^^^^^ Compilation failed: 1 error(s), 0 warning(s)
-- 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/329.