It is basically a boxed integer value.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1074
objects/property-construct-only-write-foreign.test \
objects/property-delegate.vala \
objects/property-delegate-owned.vala \
+ objects/property-enum-nullable.vala \
objects/property-gboxed-nullable.vala \
objects/property-real-struct-assignment.vala \
objects/property-real-struct-no-accessor.test \
--- /dev/null
+enum Bar {
+ Manam;
+}
+
+class Foo : Object {
+ public Bar? bar { owned get; set; }
+}
+
+void main () {
+}
}
}
+ if (property_type is EnumValueType) {
+ return !property_type.nullable;
+ }
+
if (property_type is ArrayType && ((ArrayType) property_type).element_type.type_symbol != string_type.type_symbol) {
return false;
}