digitalmars.D.bugs - [Issue 19080] New: Order of overloads affects the chosen method
- d-bugmail puremagic.com (34/34) Jul 12 2018 https://issues.dlang.org/show_bug.cgi?id=19080
https://issues.dlang.org/show_bug.cgi?id=19080 Issue ID: 19080 Summary: Order of overloads affects the chosen method Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: razvan.nitu1305 gmail.com //a.d struct Foo { private void fun(A)(A a) {} void fun(int a) {} } struct Bar { void fun(int a) {} private void fun(A)(A a) {} } // b.d void main() { Foo a; a.fun(42); // deprecation: a.Foo.fun is no visible Bar b; b.fun(42); // ok } Expectation : no deprecation at all --
Jul 12 2018