Files
mono/mcs/errors/cs0154.cs
T
Marek Safar 0c31213775 error messages review
svn path=/trunk/mcs/; revision=46724
2005-06-29 14:55:08 +00:00

24 lines
301 B
C#

// cs0154.cs: The property or indexer `A.name' cannot be used in this context because it lacks the `get' accessor
// Line: 21
public class A
{
public string name
{
set
{
name = value;
}
}
}
public class B
{
public static void Main ()
{
A a = new A ();
string b = a.name;
}
}