[Issue 7590] New: no error with missing template parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 26 07:34:59 PST 2012
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: nobody at puremagic.com
ReportedBy: mrmocool at gmx.de
--- Comment #0 from Trass3r <mrmocool at 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: -------
More information about the Digitalmars-d-bugs
mailing list