www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - error message

I know the following code is not supposed to work (yet), but I think the message
could be better (especially the second one):

////////////////////////////
void x (int v) {}
int x ()
{
    return 2;
}
void main ()
{
    x &= ~1;    //line 7
}

////////////////////////////

dmd outputs:
test.d(7): 'x' is not a scalar, it is a int()
test.d(7): incompatible types for ((x) TOK83 (TOK881)): 'int()' and 'int'
test.d(7): 'x' is not an integral type

-----------------------
Carlos Santander Bernal
Aug 18 2004