2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-502.cs
blob75d978d83544a8a4dd3226778762ccad807a4eb2
1 class Base
3 public int Property { get { return 42; } }
4 static void Main () {}
7 // TC #1
8 class Derived : Base
10 public int get_Property() { return 42; }
13 // TC #2
14 class BaseClass {
15 protected virtual int Value {
16 get {
17 return 0;
19 set { }
23 abstract class DerivedClass: BaseClass {
24 protected int get_Value () {
25 return 1;
30 class ErrorClass: DerivedClass {
31 protected override int Value {
32 get {
33 return 0;
35 set { }