Summary: DMD doesn't block access to "static package" members
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-12-28 04:47:34 PST ---
DMD(2.051) doesn't generate access error for methods with static package
attributes when accessed from another package.
For example:

module package.test;
class Test 
 static package int test; //static+package

 package int test2;//only package

module main;
import std.stdio;
import package.test;

void main()
 writeln(Test.test);//Should generate an error, but it doesn't!
 auto t=new Test();
 writeln(t.test2);  //Generates an error correctly

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to