[Issue 17863] New: cannot deduce function with implicit conversion

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 28 10:38:09 UTC 2017


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 at puremagic.com
          Reporter: dfj1esp02 at 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); }

--


More information about the Digitalmars-d-bugs mailing list