Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0154.cs
1 // CS0154: The property or indexer `A.name' cannot be used in this context because it lacks the `get' accessor
2 // Line: 21
3
4 public class A
5 {
6         public string name 
7         {
8                 set
9                 {
10                         name = value;
11                 }
12         }
13 }
14
15 public class B
16 {
17         public static void Main ()
18         {
19                 A a = new A ();
20                 string b = a.name;
21         }
22 }
23