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:
authorMiguel de Icaza <miguel@gnome.org>2002-05-22 03:31:38 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-05-22 03:31:38 +0400
commit23323d42b566aa902485026997c8fa24f719a609 (patch)
treed83834a3d5015a3936b98d7c4298898bea6aeb72 /mcs/errors/cs0122.cs
parentf49a845ad09e281b3a662c13f7432f30ac0bf49d (diff)
Add another error test case
svn path=/trunk/mcs/; revision=4842
Diffstat (limited to 'mcs/errors/cs0122.cs')
-rwxr-xr-xmcs/errors/cs0122.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/cs0122.cs b/mcs/errors/cs0122.cs
new file mode 100755
index 00000000000..47078b0fdf8
--- /dev/null
+++ b/mcs/errors/cs0122.cs
@@ -0,0 +1,18 @@
+// cs0122.cs: y.x is inaccessible due to its protection level
+// Line: 15
+using System;
+
+class Y {
+ void x () {}
+
+}
+
+class X {
+ static int Main ()
+ {
+ Y y = new Y ();
+
+ y.x ();
+ return 0;
+ }
+}