[R#: 5.0.1534.3] Incorrent "Inconsistent accessibility" for nested classes bug?

Look at the following code fragment:

public static class TypeIO
{
     private delegate void WriterDlgt(BinaryWriter bw, object val);
     private delegate object ReaderDlgt(BinaryReader br);

     private class IODelegate
     {
         protected WriterDlgt writer;
         protected ReaderDlgt reader;

         public WriterDlgt Writer
         {
             get { return writer; }
         }

         public ReaderDlgt Reader
         {
             get { return reader; }
         }

         public IODelegate(WriterDlgt writer, ReaderDlgt reader)
         {
             this.writer = writer;
             this.reader = reader;
         }
     }
}



R# complains about ReaderDlgt and WriterDlgt inconsistent accessibility. Its not a good practice but I still can make another nested class which inherits IODelegate and use writer and reader field:

private class IODelegateDesc: IODelegate
{
}



Am I wrong in understanding "Inconsistent accessibility" check?

1 comment

This problem was introduced in this build.... It is fixed


0

Please sign in to leave a comment.