[Issue 16957] New: access function from inside template with same name

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 7 16:21:39 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16957

          Issue ID: 16957
           Summary: access function from inside template with same name
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: john.loughran.colvin at gmail.com

auto a() { return 1; }
enum a() = .a();
enum b = a!();

test.d(2): Error: none of the overloads of 'a' are callable using argument
types (), candidates are:
test.d(1):        test.a()
test.d(3): Error: template instance test.a!() error instantiating

--


More information about the Digitalmars-d-bugs mailing list