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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 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: -------