[Issue 3543] : ? operator can't find common type for interfaces

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 26 10:47:29 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3543



--- Comment #2 from nfxjfg at gmail.com 2009-12-26 10:47:29 PST ---
Note how this makes array literal type inference suck in dmd 2.037:

class Root {
}

class A : Root {
}

class B : Root {
}

bool bla;

void main() {
  A a;
  B b;
  Root t;
  t = a; t = b; //works
  //Error: cannot implicitly convert expression (a) of type fgd.Root to fgd.B
  Root[] t2 = [a, b];
}

If this bug gets fixed, array literal type inference in D2 will be improved.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list