Re: [Vala] [0.8.0 release] missing generic type arguments



Am 01.04.2010 18:11, Бака Гайдзин wrote:
Hi.

With new release I get this error, when I'm trying to use HashTable
method "insert":

    HashTable table = new HashTable<string, string>(str_hash, str_equal);
    table.insert("some string", "some_string");

Either write

  HashTable<string, string> table = new HashTable<string, string>(str_hash, str_equal);

or

  var table = new HashTable<string, string>(str_hash, str_equal);

There is the point in release notes:

Infer type arguments when calling generic methods

This has nothing to do with your issue.


Best regards,

Frederik



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