[Mono-bugs] [Bug 545081] New: CS0052 Error when using Nested Classes to compile Code

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 7 15:30:39 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=545081


           Summary: CS0052 Error when using Nested Classes to compile Code
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.4.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: scottdensmore at mac.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Description of Problem:
I get error CS0052: Inconsistent accessibility: field type
`System.Collections.Generic.List<CodePlex.TfsLibrary.ClientEngine.TfsEngineSyncupTest.SyncupCallbackResult>'
is less accessible than field `DirectoryAddedWithNewSubItems' when
'DirectyAddedWithNewSubItems' is a method in a nested class not a field?  I get
this error when compiling my project with Nested classes.  I am on 2.4.2.3.

Steps to reproduce the problem:
1. Open Terminal and make a directory called cpc and cd to cpc
2. Checkout code at CodePlex svn co https://CodePlexClient.svn.codeplex.com/svn
.
3. Open up solution with MonoDevelop (I am using 2.2 beta 1 (2.1.0) version for
MonoTouch
4. Build

Actual Results:
error CS0052: Inconsistent accessibility: field type
`System.Collections.Generic.List<CodePlex.TfsLibrary.ClientEngine.TfsEngineSyncupTest.SyncupCallbackResult>'
is less accessible than field `DirectoryAddedWithNewSubItems'

Expected Results:
Code should compile

How often does this happen? 
All the time

Additional Information:

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list