[Issue 19080] New: Order of overloads affects the chosen method
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 12 09:27:11 UTC 2018
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 at puremagic.com
Reporter: razvan.nitu1305 at 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
--
More information about the Digitalmars-d-bugs
mailing list