Vala misidentifies a variable wrapped by parens with cast expression
Vala misidentifies a variable wrapped by parens with cast expression.
void main () {
uint a = 0x00ff;
uint b = 0x0f0f;
uint c = ((a) & (b));
}
Compilation fails with the next log:
test.vala:4.14-4.14: error: The type name `a' could not be found
uint c = ((a) & (b));
^
In the case of 'OR' or 'XOR' operation, compilation doesn't fail.
c = ((a) | (b));
c = ((a) ^ (b));