[Issue 15185] New: [REG2.069.0-b1] Not possible to create instance of TypeInfo

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Oct 11 05:11:21 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=15185

          Issue ID: 15185
           Summary: [REG2.069.0-b1]  Not possible to create instance of
                    TypeInfo
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: doob at me.com

The following code results in the error below:

void main ()
{
    auto a = new TypeInfo;
}

main.d(8): Error: cannot create instance of abstract class TypeInfo
main.d(8):        function 'const(void)[] init() const pure nothrow @nogc
@safe' is not implemented

I guess the change is intentional but it's a breaking change.

--


More information about the Digitalmars-d-bugs mailing list