[nem-bug] [Nemerle 0000597]: protected accessibility

feedback at nemerle.org feedback at nemerle.org
Tue Jan 10 12:31:35 CET 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=597> 
======================================================================
Reported By:                malekith
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   597
Category:                   Compiler (type engine)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             01-10-2006 12:31 CET
Last Modified:              01-10-2006 12:31 CET
======================================================================
Summary:                    protected accessibility
Description: 
The following C# gives:

using System.IO;

class Foo : TextReader {
  TextReader r;
  protected override void Dispose (bool d)
  {
    r.Dispose (d);
  }

  public static void Main () { }
}

foo.cs(7,5): error CS1540: Cannot access protected member
`System.IO.TextReader.Dispose(bool)' via a qualifier of type
`System.IO.TextReader'; the qualifier must be of type `Foo' (or derived
from it)
/usr/lib/mono/2.0/mscorlib.dll: `System.IO.TextReader.Dispose(bool)', name
of symbol related to previous error

equivalent Nemerle will compile

PEVerify chokes on this
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
01-10-06 12:31 malekith       New Issue                                    
======================================================================




More information about the bugs mailing list