[Issue 2861] Forward reference of .stringof in a template gives wrong value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 31 07:57:52 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2861
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-08-31 07:57:51 PDT ---
Fixed DMD2.030 and 1.045.
This works now.
Test case was wrong, though, should have been:
--
template Templ(T) {
const char[] x = (Type).stringof;
alias T Type;
}
void main() {
static assert(Templ!(int).x =="int");
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list