diff options
author | Marek Safar <marek.safar@gmail.com> | 2005-03-18 16:32:27 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2005-03-18 16:32:27 +0300 |
commit | 6a1e4ec9ead8fd9733cb00a658bc987ecca0b3eb (patch) | |
tree | 5c8caad6e41eb250af4ab5dee881f589fbc580b1 /mcs/errors/cs0272.cs | |
parent | 00ec687b8c30a540a8b1252d82b387d78525f068 (diff) |
new tests
svn path=/trunk/mcs/; revision=41981
Diffstat (limited to 'mcs/errors/cs0272.cs')
-rw-r--r-- | mcs/errors/cs0272.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/errors/cs0272.cs b/mcs/errors/cs0272.cs new file mode 100644 index 00000000000..f9fd2015ee1 --- /dev/null +++ b/mcs/errors/cs0272.cs @@ -0,0 +1,21 @@ +// cs0272.cs: The property or indexer 'P.Prop' cannot be used in this context because the set accessor is inaccessible +// Line: 19 + +class P +{ + public static int Prop + { + get { + return 4; + } + private set {} + } +} + +public class C +{ + public static void Main () + { + P.Prop = 453422; + } +}
\ No newline at end of file |