blob: b8bdb5d868be5fc3aba4d8df4b57ae037a56f903 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// CS0272: The property or indexer `Test.A.B' cannot be used in this context because the set accessor is inaccessible
// Line: 16
using System;
public class Test
{
private class A
{
public string B { get; private set; }
}
static void Main ()
{
A a = new A ();
a.B = "Foo";
}
}
|