[Issue 435] Constructors should be templatized

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 18 12:31:08 PDT 2009


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


Andrei Alexandrescu <andrei at metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at metalanguage.com




--- Comment #1 from Andrei Alexandrescu <andrei at metalanguage.com>  2009-05-18 12:31:07 PDT ---
A quick unittest:

class B
{
    this(int) {}
}

class D : B
{
    this(A...)(A args) { super(args); }
}

unittest
{
    auto a = new D(4);
}

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