linux-packaging-mono/mcs/tests/test-partial-08.cs

24 lines
403 B
C#
Raw Normal View History

// The standard says this doesn't have to have the 'sealed' modifier
public partial class Foo
{
public string myId;
}
public sealed partial class Foo
{
public string Id { get { return myId; } }
}
public class PartialAbstractCompilationError
{
public static int Main ()
{
if (typeof (Foo).IsAbstract || !typeof (Foo).IsSealed)
return 1;
System.Console.WriteLine ("OK");
return 0;
}
}