[Issue 1659] template alias parameters are chosen over all but exact matches.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 3 14:32:40 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=1659


Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow at gmail.com


--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-02-04 00:32:36 EET ---
Still happens with 2.064. The typedef part is no longer relevant as the
language feature is going away, but the class hierarchy part remains.

Shorter test case:

class Foo { }
class Bar : Foo { }

void f(T : Foo)() { }
void f(alias T)() { assert(false); }

void main()
{
    f!Bar();
}

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


More information about the Digitalmars-d-bugs mailing list