https://issues.dlang.org/show_bug.cgi?id=23947

--- Comment #1 from FeepingCreature <[email protected]> ---
Correction: more testing suggests that the accepts-invalid condition is "the
method is private, but a method defined after it in the overload set is
public". Doesn't have to be the last one.

Consider: this compiles.

--- b.d
struct X { }
struct Y { }
struct Z { }
class Class {
    private void handle(X x) { }
    public void handle(Y y) { }
    private void handle(Z z) { }
}

--

Reply via email to