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