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: [email protected]
Reporter: [email protected]
//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
--