linux-packaging-mono/mcs/tests/test-partial-08.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
403 B
C#

// 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;
}
}