2009-11-12 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0441-2.cs
blobfa6023c7e1f0ddbd2eb9321508e5c651bb0a893e
1 // cs0441-2.cs : `Foo': a class cannot be both static and sealed
2 // Line: 3
3 public sealed partial class Foo
5 public string myId;
8 public static partial class Foo
10 public string Id { get { return myId; } }
13 public class PartialAbstractCompilationError
15 public static void Main ()
17 System.Console.WriteLine (typeof (Foo).IsSealed);
18 System.Console.WriteLine (typeof (Foo).IsAbstract);