January 02, 2006
with dmd 0.141 and "-w"

int main()
{
  // no warning
  bit a1 = (( 1 & 3 ) != 0 );

  // warning: implicit conversion of
  // expression (i & 3 != 0) of type int
  // to bit can cause loss of data
  int i = 1;
  bit a2 = (( i & 3 ) != 0 );
  return 0;
}

Frank
January 02, 2006
Sorry I noticed the "bool bugs" thread too late.

Frank