valac: Assigning a enum base name does not throw a warning
This came up in the context of https://github.com/GeopJr/Tuba/pull/909:
There, calling
video.graphics_offload = Gtk.GraphicsOffloadEnabled;
instead of
video.graphics_offload = Gtk.GraphicsOffloadEnabled.ENABLED;
does not throw a warning or set the value to "enabled", even though that would have been expected I guess.
According to @ricotz this should trigger a warning like:
you sould see something like this - (valac:178146): vala-ccodegen-CRITICAL **: 22:43:19.224: vala_ccode_base_module_store_property: assertion 'value != NULL' failed