GNOME Bugzilla – Bug 780050
CRITICAL **: vala_data_type_get_nullable: assertion 'self != NULL' failed
Last modified: 2017-03-14 22:04:07 UTC
When a namespace has an enum value with an initializer, e.g.: namespace Foo { public ApplicationFlags flags = ApplicationFlags.FLAGS_NONE; } This is a regression introduced by: https://bugzilla.gnome.org/show_bug.cgi?id=777697 I'll take a stab at a test-case and fix.
Created attachment 347943 [details] [review] vala: Fix MemberAccess.is_non_null() for enum value constants OTOH whether an EnumValue should have a type is a question that I'm not able to answer.
(In reply to Ole André Vadla Ravnås from comment #0) > This is a regression introduced by: > https://bugzilla.gnome.org/show_bug.cgi?id=777697 FWIW this turned out to be false – it was just exposing a bug already there.
Created attachment 347957 [details] [review] vala: Fix MemberAccess.is_non_null() for EnumValue constants This is because an EnumValue object does not have a type reference.
Review of attachment 347957 [details] [review]: Much better!
commit b57a9f8b1c21ec7cf685ead4a0aee093cd2c3357 Author: Ole André Vadla Ravnås <oleavr@gmail.com> Date: Tue Mar 14 20:44:45 2017 +0100 vala: Fix MemberAccess.is_non_null() for EnumValue constants This is because an EnumValue object does not have a type reference.