a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
22 lines
398 B
C#
22 lines
398 B
C#
// CS0441: `Foo': a class cannot be both static and sealed
|
|
// Line: 3
|
|
public sealed partial class Foo
|
|
{
|
|
public string myId;
|
|
}
|
|
|
|
public static partial class Foo
|
|
{
|
|
public string Id { get { return myId; } }
|
|
}
|
|
|
|
public class PartialAbstractCompilationError
|
|
{
|
|
public static void Main ()
|
|
{
|
|
System.Console.WriteLine (typeof (Foo).IsSealed);
|
|
System.Console.WriteLine (typeof (Foo).IsAbstract);
|
|
}
|
|
}
|
|
|