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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 13 09:43:43 PDT 2015


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

--- Comment #6 from Jacob Carlborg <doob at me.com> ---
(In reply to Steven Schveighoffer from comment #5)
> Why not "typeid(const(Object))" and "(const(Object)).classinfo" ?

The existing code will evaluate to "const(TypeInfo)". Your suggestion evaluates
to "TypeInfo_Const". I guess I could hard code "const(TypeInfo)", but then I
need put the whole alias declaration in a string mixin.

It's not like I don't know how work around the change. It broke my code so I
reported an issue.

--


More information about the Digitalmars-d-bugs mailing list