www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 660] New: Incorrect protection error message

http://d.puremagic.com/issues/show_bug.cgi?id=660

           Summary: Incorrect protection error message
           Product: GDC
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn users.sf.net
        ReportedBy: csantander619 gmail.com


(sorry for not finding a better summary)

//-------------------
class A
{
        void foo () {}
        private
        static void foo (int i) {}
}

class B
{
        void foo (int x)
        {
                A.foo (x);
        }
}
//-------------------
$ gdmd -c test1.d
test1.d:12: class test1.B member foo is not accessible
//-------------------


-- 
Dec 06 2006