[Vala] GenericArray problem



Hi,

If I declare a derived class of GenericArray, like so:

public class IntArray : GenericArray<int> {
  public IntArray() {
  }
}

I get a gcc error, like so:
/tmp/a.vala.AH856X.c: In function ‘int_array_new’:
/tmp/a.vala.AH856X.c:66:2: error: too few arguments to function
‘g_ptr_array_new_with_free_func’
  self = (IntArray*) g_ptr_array_new_with_free_func ();

whereas with Array (for example) it just works.

Is there something I'm doing wrong, or is this a bug?

Using Vala 0.30.0

Regards,

Andrew Lees


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]