2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mcs / tests / test-287.cs
blob250541c47d927e833f11f9e94119cb3cf8d873ec
1 using System;
2 using System.Reflection;
4 static class StaticClass
6 const int Foo = 1;
8 delegate object D ();
9 enum E {}
11 public static string Name ()
13 return "OK";
17 public class MainClass
19 public static int Main ()
21 Type type = typeof (StaticClass);
22 if (!type.IsAbstract || !type.IsSealed) {
23 Console.WriteLine ("Is not abstract sealed");
24 return 1;
27 if (type.GetConstructors ().Length > 0) {
28 Console.WriteLine ("Has constructor");
29 return 2;
32 Console.WriteLine (StaticClass.Name ());
33 return 0;