diff options
author | Alejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com> | 2002-12-17 20:51:26 +0300 |
---|---|---|
committer | Alejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com> | 2002-12-17 20:51:26 +0300 |
commit | a481294ce76f1ad07ab6c9c0a9cb789eaa2bf22e (patch) | |
tree | 85cf95ba781fd5da9b3025d736dc92f370cc8913 /mcs/errors/cs0154.cs | |
parent | ed99b91dda8dbce0c39da4267e1ad3216e574a4e (diff) |
Added new mcs test error cs0154.cs
svn path=/trunk/mcs/; revision=9732
Diffstat (limited to 'mcs/errors/cs0154.cs')
-rw-r--r-- | mcs/errors/cs0154.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/errors/cs0154.cs b/mcs/errors/cs0154.cs new file mode 100644 index 00000000000..9f53ed8ab9a --- /dev/null +++ b/mcs/errors/cs0154.cs @@ -0,0 +1,24 @@ +// cs0154.cs: The property 'name' can not be used in this context because +// it lacks a 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; + } +} + |