[Mono-bugs] [Bug 580867] New: Events in nested class of generic class inaccessible
    bugzilla_noreply at novell.com 
    bugzilla_noreply at novell.com
       
    Thu Feb 18 07:31:10 EST 2010
    
    
  
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: mono-bugs at lists.ximian.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          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.
    
    
More information about the mono-bugs
mailing list