www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16957] New: access function from inside template with same name

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 puremagic.com
          Reporter: john.loughran.colvin 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

--
Dec 07 2016