[Mono-bugs] [Bug 626474] New: Reports lack of overridable accessor when it is in an upper level of the class hierarchy
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jul 28 18:07:36 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=626474
http://bugzilla.novell.com/show_bug.cgi?id=626474#c0
Summary: Reports lack of overridable accessor when it is in an
upper level of the class hierarchy
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: knocte at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.1.10)
Gecko/20100506 SUSE/3.5.10-0.1.1 Firefox/3.5.10
using System;
namespace CsharpLib
{
public class MyBaseClass {
public virtual bool HasEditableTrackProperties {
get { return false; }
set { throw new NotSupportedException (); }
}
}
public class MyClass : MyBaseClass
{
public override bool HasEditableTrackProperties {
get { return true; }
}
}
public class MyLasClass : MyClass
{
public override bool HasEditableTrackProperties {
get { return true; }
set { }
}
}
}
Reproducible: Always
Steps to Reproduce:
1.Compile above code.
Actual Results:
Compiler error (CS0546)
Expected Results:
CSC compiles it fine.
--
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