Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-788.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a5d2cd10e604a6c17eb27946a1e5cb812c43b3c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;

class Program
{
	public static int Main ()
	{
		B b = new B ();
		if (b.Message != "OK")
			return 1;
		return 0;
	}
}

class A
{
	public virtual string Message
	{
		get
		{
			return "OK";
		}
	}
}

class B : A
{
	new string Message
	{
		get
		{
			throw new Exception ();
		}
	}
}