[Issue 2012] Another IFTI case that probably should work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 10 02:42:42 PDT 2011


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies at gmail.com
         Resolution|                            |FIXED
            Summary|Another IFTI case that      |Another IFTI case that
                   |probably should work        |probably should work


--- Comment #1 from yebblies <yebblies at gmail.com> 2011-06-10 02:38:07 PDT ---
This seems to work in dmd2.053, the following prints:
a
b

------------

void foo(T, U)(U u)
{
    pragma(msg, "a");
}

void foo(T, A...)(A a)
{    
    pragma(msg, "b");
}

//import std.math;
void main()
{
    int x, y;

    // a 
    foo!(int)(x);
    // b
    foo!(int)(x, y);
}

-- 
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