summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0441-2.cs
blob: f6ba8a6c3eac7cef0d81f447318f4ce0b149e390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0441: `Foo': a class cannot be both static and sealed
// Line: 3
public sealed partial class Foo
{
	public string myId;
}

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

public class PartialAbstractCompilationError
{
	public static void Main ()
	{
		System.Console.WriteLine (typeof (Foo).IsSealed);
		System.Console.WriteLine (typeof (Foo).IsAbstract);
	}
}