www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17863] New: cannot deduce function with implicit conversion

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

          Issue ID: 17863
           Summary: cannot deduce function with implicit conversion
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dfj1esp02 sneakemail.com

void f1(T)(const T a){} //works
void f2(T)(immutable T a){} //doesn't work
void f3(T)(shared T a){} //doesn't work
void g(){ f1(0); f2(0); f3(0); }

--
Sep 28