[Issue 8732] New: std.typecons: BlackHole/WhiteHole always declare methods public
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 27 09:15:20 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8732
Summary: std.typecons: BlackHole/WhiteHole always declare
methods public
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-09-27 09:15:56 PDT ---
inter.d:
module inter;
interface Inter
{
protected void test();
}
test.d:
module test;
import inter;
import std.typecons;
void main()
{
auto o = new BlackHole!Inter;
o.test(); // works, o.test was declared public
}
Note: This will be fixable only after Pull 856 is implemented (Protection
trait).
https://github.com/D-Programming-Language/dmd/pull/856#issuecomment-8941587
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list