Can't use ArrayList with struct types that are aliases for primitive types
The following code compiles fine:
using Gee;
int main(string[] args) {
var foo = new ArrayList<uint> ();
return 0;
}
but not with a struct that is just an alias for uint:
using Gee;
struct Alias : uint {}
int main(string[] args) {
var foo = new ArrayList<Alias> ();
return 0;
}
which gives the error:
foo.vala.c:23:31: error: ‘TYPE_ALIAS’ undeclared (first use in this function)
23 | _tmp0_ = gee_array_list_new (TYPE_ALIAS, NULL, NULL, NULL, NULL, NULL)``
Edited by Reuben Thomas