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

test-partial-08.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 34bcdadfa5f35375491f96538756a35fd765f7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// The standard says this doesn't have to have the 'sealed' modifier
public partial class Foo
{
	public string myId;
}

public sealed partial class Foo
{
	public string Id { get { return myId; } }
}

public class PartialAbstractCompilationError
{
	public static void Main ()
	{
		if (typeof (Foo).IsAbstract || !typeof (Foo).IsSealed)
			throw new System.ApplicationException ();
	}
}