Bug 13134 – Lexically first `private` function overload makes all overloads `private`

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-15T14:54:14Z
Last change time
2020-03-21T03:56:35Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Denis Shelomovskii

Comments

Comment #0 by verylonglogin.reg — 2014-07-15T14:54:14Z
This code should compile: --- module foo; // void f(int,int) { } // uncomment to remove error private void f(int) { } void f() { } --- import foo; void main() { f(); } --- main.d(5): Error: module main function foo.f is private ---
Comment #1 by razvan.nitu1305 — 2018-01-26T11:13:53Z
Cannot reproduce on git HEAD ubuntu 16.04. Closing as Fixed.