[Issue 11476] New: Error: fun (A _param_0) is not callable using argument types ()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 8 18:47:13 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11476
Summary: Error: fun (A _param_0) is not callable using argument
types ()
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: thelastmammoth at gmail.com
--- Comment #0 from thelastmammoth at gmail.com 2013-11-08 18:47:11 PST ---
shouldn't we be allowed to write this?
auto fun(T...)(T a){
static if(T.length){} else{}
return 2;
}
unittest{
struct A{}
assert(fun!A);
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list