[Issue 2057] Unexpected type names with template typedefs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 12 07:25:53 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=2057


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.014                       |D1


--- Comment #1 from Don <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list