[Issue 1692] Abstract class dynamic creation bug

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 23 03:01:40 PDT 2009


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





------- Comment #2 from gide at nwawudu.com  2009-04-23 05:01 -------
Added example from Bug 2453.

abstract class C {
}

void main()
{
    auto c = cast(C)C.classinfo.create();
    assert(c is null); // should pass or classinfo.create should throw an
exception
}


-- 



More information about the Digitalmars-d-bugs mailing list