**** Merged from MCS ****
[mono-project.git] / mcs / tests / test-287.cs
blobe0728d358c9e4e3bf6c9e9a45b33732f85ef9c24
1 using System;
2 using System.Reflection;
4 static class StaticClass
6 const int Foo = 1;
8 public static string Name ()
10 return "OK";
14 public class MainClass
16 public static int Main ()
18 Type type = typeof (StaticClass);
19 if (!type.IsAbstract || !type.IsSealed) {
20 Console.WriteLine ("Is not abstract sealed");
21 return 1;
24 if (type.GetConstructors ().Length > 0) {
25 Console.WriteLine ("Has constructor");
26 return 2;
29 Console.WriteLine (StaticClass.Name ());
30 return 0;