July 12, 2018 [Issue 19080] New: Order of overloads affects the chosen method | ||||
---|---|---|---|---|
| ||||
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 -- |
Copyright © 1999-2021 by the D Language Foundation