[Issue 13580] alias missing in overloaded homonym template
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Apr 29 23:02:40 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=13580
Basile-z <b2.temp at gmx.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com
--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
If someone comes with a fix then rather use this test case since the original
is not supposed to compile even with the bug fixed. This one does:
---
template memoize(alias fun)
{
    alias Args = string;
    void memoize(Args args) {}
}
template memoize(alias fun)
{
    alias Args = int;
    void memoize(Args args) {}
}
void main()
{
    memoize!(a => a)("");
}
---
--
    
    
More information about the Digitalmars-d-bugs
mailing list