www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18972] New: __traits(getOverloads) example with 3rd argument


          Issue ID: 18972
           Summary: __traits(getOverloads) example with 3rd argument
                    doesn't compile
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: dkorpel live.nl

"The third argument is a bool, and is optional. If true, the result will also
include template overloads."

When I try this by running the example I get this:

onlineapp.d(27): Error: expected 2 arguments for getOverloads but had 3

Line 27 is:
27  foreach (t; __traits(getOverloads, D, "bar", true))
28      writeln(t.stringof);

I don't know whether it's the spec or implementation, but one of them is

Jun 11 2018