[nem-bug] [Nemerle 0000597]: protected accessibility
feedback at nemerle.org
feedback at nemerle.org
Tue Jan 10 12:34:39 CET 2006
A NOTE has been added to this issue.
======================================================================
<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:34 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
======================================================================
----------------------------------------------------------------------
malekith - 01-10-06 12:34
----------------------------------------------------------------------
base.Dispose(d) should work though
Issue History
Date Modified Username Field Change
======================================================================
01-10-06 12:31 malekith New Issue
01-10-06 12:34 malekith Note Added: 0001056
======================================================================
More information about the bugs
mailing list