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

           Summary: no error with missing template parameter
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: mrmoc...@gmx.de


--- Comment #0 from Trass3r <mrmoc...@gmx.de> 2012-02-26 16:34:57 CET ---
template curry(alias fun, alias arg)
{
        auto curry(Ts args2)
        {
                return fun(arg, args2);
        }
}

unittest
{
    static struct TCallable
    {
        auto opCall(A, )(A a, B b)
        {
            return a + b;
        }
    }
    TCallable tcallable;
    static assert(!is(typeof(curry!(tcallable, "5"))));
}

$ dmd -c -unittest test.d

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

Reply via email to