https://issues.dlang.org/show_bug.cgi?id=15564
Issue ID: 15564
Summary: Bogus non local error messages
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
src/main.d(22): Error: template instance query!(function Inv(h)
{
ubyte[32] stop;
h.send(GetBlocks(60002, [], stop));
return h.receive!Inv();
}
, ) cannot use local '__funcliteral1' as parameter to non-global template
query(alias f, T...)(T args)
That's a function.
--