Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0418-5.cs
1 // CS0418: `Foo': an abstract class cannot be sealed or static
2 // Line: 3
3 public abstract partial class Foo
4 {
5         public string myId;
6 }
7
8 public static partial class Foo
9 {
10         public string Id { get { return myId; } }
11 }
12
13 public class PartialAbstractCompilationError
14 {
15         public static void Main ()
16         {
17                 System.Console.WriteLine (typeof (Foo).IsSealed);
18                 System.Console.WriteLine (typeof (Foo).IsAbstract);
19         }
20 }
21