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

http://bugzilla.novell.com/show_bug.cgi?id=580867#c0


           Summary: Events in nested class of generic class inaccessible
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


Test case:

using System.ComponentModel;
using System;

public class E<T> {
    public class I {
        public event PropertyChangedEventHandler E;
    }

    static void Main ()
    {
        I i = new I ();
        i.E += new PropertyChangedEventHandler (EH);
    }
    static void EH (object sender, PropertyChangedEventArgs cea)
    {
    }
}

results in:
> gmcs test.cs -target:library
test.cs(12,19): error CS0122: `E<T>.I.E' is inaccessible due to its protection
level

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to