Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-287.cs
1 using System;
2 using System.Reflection;
3
4 static class StaticClass
5 {
6     const int Foo = 1;    
7  
8     delegate object D ();
9     enum E {}
10         
11     public static string Name ()
12     {
13         return "OK";
14     }
15 }
16
17 public class MainClass
18 {
19     public static int Main ()
20     {
21         Type type = typeof (StaticClass);
22         if (!type.IsAbstract || !type.IsSealed) {
23             Console.WriteLine ("Is not abstract sealed");
24             return 1;
25         }
26         
27         if (type.GetConstructors ().Length > 0) {
28             Console.WriteLine ("Has constructor");
29             return 2;
30         }
31         
32         Console.WriteLine (StaticClass.Name ());
33         return 0;
34     }
35 }