a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
403 B
C#
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;
|
|
}
|
|
}
|
|
|