[Issue 2057] Unexpected type names with template typedefs

2019-07-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2057

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WONTFIX

--


[Issue 2057] Unexpected type names with template typedefs

2012-11-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2057


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

Version|2.014   |D1


--- Comment #1 from Don clugd...@yahoo.com.au 2012-11-12 07:25:52 PST ---
Though marked as a D2-only bug, it's actually D1 only!

struct foo(T) {
T value;
}

template bar(T) {
typedef foo!(T) bar;
}

void main()
{
pragma(msg, (bar!(int)).stringof); // prints 'bar'
pragma(msg, (bar!(float)).stringof); // also prints 'bar'
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---