digitalmars.D.bugs - error message
- Carlos Santander B. (19/19) Aug 18 2004 I know the following code is not supposed to work (yet), but I think the...
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








"Carlos Santander B." <carlos8294 msn.com>