add failing test for bnc550722
[mcs.git] / tests / test-502.cs
blob97fbe5d3cfe89b4290be7c8e11ed011ca01458f9
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 { }