Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2005-03-18 16:32:27 +0300
committerMarek Safar <marek.safar@gmail.com>2005-03-18 16:32:27 +0300
commit6a1e4ec9ead8fd9733cb00a658bc987ecca0b3eb (patch)
tree5c8caad6e41eb250af4ab5dee881f589fbc580b1 /mcs/errors/cs0271.cs
parent00ec687b8c30a540a8b1252d82b387d78525f068 (diff)
new tests
svn path=/trunk/mcs/; revision=41981
Diffstat (limited to 'mcs/errors/cs0271.cs')
-rw-r--r--mcs/errors/cs0271.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/errors/cs0271.cs b/mcs/errors/cs0271.cs
new file mode 100644
index 00000000000..d5480ce3b2c
--- /dev/null
+++ b/mcs/errors/cs0271.cs
@@ -0,0 +1,21 @@
+// cs0271.cs: The property or indexer 'P.Prop' cannot be used in this context because the get accessor is inaccessible
+// Line: 19
+
+class P
+{
+ public static int Prop
+ {
+ private get {
+ return 4;
+ }
+ set {}
+ }
+}
+
+public class C
+{
+ public static int Main ()
+ {
+ return P.Prop;
+ }
+} \ No newline at end of file