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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 6 13:48:13 PDT 2011


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



--- Comment #12 from bearophile_hugs at eml.cc 2011-04-06 13:44:34 PDT ---
Even modifying :? just for class instances will be a good improvement, this is
not accepted by dmd 2.052:


class A {}
class B : A {}
class C : A {}
void main() {
    B b = new B;
    C c = new C;
    A[] array = [b, c];
}

-- 
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