June 24, 2007 [Issue 1291] New: .stringof for a class type returned from a template doesn't work | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1291 Summary: .stringof for a class type returned from a template doesn't work Product: D Version: 1.016 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: onlystupidspamhere@yahoo.se Code: template t() { alias Object t; } pragma(msg, t!().stringof); Compiler output: bug.d(2): Error: undefined identifier class Object.stringof bug.d(2): pragma msg string expected for message, not 'class Object.stringof' ---- t!() should return type 'Object' which is a valid type and for which .stringof exists. For example this works: alias Object t; pragma(msg, t.stringof); -- |
July 01, 2007 [Issue 1291] .stringof for a class type returned from a template doesn't work | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1291 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2007-07-01 14:09 ------- Fixed DMD 1.018 and DMD 2.002 -- |
Copyright © 1999-2021 by the D Language Foundation