August 31, 2004
--[bug2.d]--

template A() {
  void write(float x) {
    printf("A.write\n");
  }
}

class B {
  mixin A;
  void write(int x) {
    printf("B.write\n");
  }
}

void main() {
  B b = new B();
  float c;

  b.write(c);
}

D:\D\src\temp>dmd bug2.d
bug2.d(18): function write (int x) does not match argument types (float)
bug2.d(18): cannot implicitly convert expression c of type float to int

Isn't this supposed to work? What am I doing wrong?

Regan

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/