www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15564] New: Bogus non local error messages

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: nobody puremagic.com
          Reporter: deadalnix gmail.com

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.

--
Jan 13