digitalmars.D.bugs - [Issue 12233] New: Attempting to use TypeInfo.init results in a compiler error due to lack of 'this'.
- d-bugmail puremagic.com (25/25) Feb 23 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12233
https://d.puremagic.com/issues/show_bug.cgi?id=12233 Summary: Attempting to use TypeInfo.init results in a compiler error due to lack of 'this'. Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: opantm2+dbugs gmail.com It tries to use the init() method on TypeInfo, which fails because init() is not static. Particularly annoying in generic code, which is where .init is meant to be used in the first place... Sample: import std.stdio; void main() { writeln(TypeInfo.init); } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 23 2014