2010-03-30 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0154.cs
blob686ee5ec143cc94334cb05161ad5dccf120153f3
1 // cs0154.cs: The property or indexer `A.name' cannot be used in this context because it lacks the `get' accessor
2 // Line: 21
4 public class A
6 public string name
8 set
10 name = value;
15 public class B
17 public static void Main ()
19 A a = new A ();
20 string b = a.name;