[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0272-3.cs
blobb8bdb5d868be5fc3aba4d8df4b57ae037a56f903
1 // CS0272: The property or indexer `Test.A.B' cannot be used in this context because the set accessor is inaccessible
2 // Line: 16
4 using System;
6 public class Test
8 private class A
10 public string B { get; private set; }
13 static void Main ()
15 A a = new A ();
16 a.B = "Foo";