[Issue 15499] IFTI fails with function literal alias
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Jan  2 06:32:16 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15499
b2.temp at gmx.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com
--- Comment #1 from b2.temp at gmx.com ---
(In reply to Daniel from comment #0)
> alias add1(T1,T2) = (T1 a, T2 b)       => a+b;
> int   add2(T1,T2)   (T1 a, T2 b) { return a+b; }
> 
> void main()
> {
>   import std.stdio;
>   add1(1,1).writeln; // cannot deduce function from argument types !()(int,
> int)
>   add2(1,1).writeln; // OK
> }
It's maybe a dup of 1807.
I asked this a while ago on the forum (IFTI failed in partial template
specialization).
http://forum.dlang.org/post/yhzadvyxijdyyoreatey@forum.dlang.org
=>
https://issues.dlang.org/show_bug.cgi?id=1807
--
    
    
More information about the Digitalmars-d-bugs
mailing list