On Di, 2012-03-06 at 08:38 +0100, Luca Dionisi wrote:
> With this snippet of code:
> 
> using Gee;
> void main()
> {
>     HashMap<int, int> x = new HashMap<int, int>();
>     x[1]++;
>     //  if we use   x[1] += 1;   would be ok


test.vala:5.5-5.8: error: The expression `Gee.HashMap<int,int>?' does
not denote an array
    x[1]++;
    ^^^^

with:

pkg-config --modversion libvala-0.16 
0.15.0.96-556a


x[1] +=1 does not produce the error

cheers, 


-- 
tomw <[email protected]>

_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to