3c1f479b9d
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
15 lines
188 B
C#
15 lines
188 B
C#
// CS0200: Property or indexer `A.X' cannot be assigned to (it is read-only)
|
|
// Line: 13
|
|
|
|
public class A
|
|
{
|
|
public int X { get; }
|
|
}
|
|
|
|
public class B : A
|
|
{
|
|
public B ()
|
|
{
|
|
base.X = 1;
|
|
}
|
|
} |