www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4160] New: Template function lookup should match non-template behavior for implicit conversion to shared params

http://d.puremagic.com/issues/show_bug.cgi?id=4160

           Summary: Template function lookup should match non-template
                    behavior for implicit conversion to shared params
           Product: D
           Version: 2.040
          Platform: x86
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: sean invisibleduck.org


--- Comment #0 from Sean Kelly <sean invisibleduck.org> 2010-05-05 14:30:07 PDT
---
void op(shared(int) x) {}
void opT(T)(shared(T) x) {}

void main()
{
    int x;
    op(x); // works
    opT(x); // fails but should work
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 05 2010