GNOME Bugzilla – Bug 698336
array .length is not correct in ensures clause
Last modified: 2016-01-30 17:43:39 UTC
Created attachment 241865 [details] Output c code. when doing an "ensures" check, the length of an array is set to -1, even when it is known. For instance the attached test.vala produces the attached test.c file. Line 20 in the output c could be better written "_tmp2__length1 = _tmp1__length1;". Incidentally, it would be more readable if it used a vala-specific warning macro, similar to vala-assert that doesn't obfuscate the original code.
Created attachment 241866 [details] vala source
This appears to have been fixed
Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed in the code repository. *** This bug has been marked as a duplicate of bug 737222 ***