Using a non-Compact class as a generic type in a Comact class causes error.
[Compact]
class Foo<T> {
public Bar<T> bar () {
return new Bar<T> ();
}
}
class Bar<T> {
}
void main () {
}
test.vala.c: In function ‘foo_bar’:
test.vala.c:96:31: error: ‘Foo’ {aka ‘struct _Foo’} has no member named ‘priv’
96 | _tmp0_ = bar_new (self->priv->t_type, NULL, NULL);
| ^~
Edited by Rico Tzschichholz