Bug 21829 – `private` is ignored when a public overload exists

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-15T13:17:20Z
Last change time
2022-09-08T06:48:57Z
Keywords
accepts-invalid, pull
Assigned to
No Owner
Creator
Bastiaan Veelo

Comments

Comment #0 by Bastiaan — 2021-04-15T13:17:20Z
--- test.d void main() { import bar; foo(1); // Compiles, violating private. } --- bar.d import std.stdio; private void foo(int i) { writeln("Private!!!"); } void foo() { writeln("Public"); }
Comment #1 by dkorpel — 2021-07-20T09:58:26Z
*** Issue 22132 has been marked as a duplicate of this issue. ***
Comment #2 by dlang-bot — 2021-11-03T11:32:23Z
@RazvanN7 created dlang/dmd pull request #13257 "Fix Issue 21829, Fix Issue 21366 - is ignored when a public overload exists" fixing this issue: - Fix Issue 21829, Fix Issue 21366 - is ignored when a public overload exists https://github.com/dlang/dmd/pull/13257
Comment #3 by razvan.nitu1305 — 2022-09-08T06:47:42Z
*** Issue 21366 has been marked as a duplicate of this issue. ***
Comment #4 by razvan.nitu1305 — 2022-09-08T06:48:12Z
*** Issue 22083 has been marked as a duplicate of this issue. ***
Comment #5 by razvan.nitu1305 — 2022-09-08T06:48:57Z
*** This issue has been marked as a duplicate of issue 3254 ***