diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-05-22 03:31:38 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-05-22 03:31:38 +0400 |
commit | 23323d42b566aa902485026997c8fa24f719a609 (patch) | |
tree | d83834a3d5015a3936b98d7c4298898bea6aeb72 /mcs/errors/cs0122.cs | |
parent | f49a845ad09e281b3a662c13f7432f30ac0bf49d (diff) |
Add another error test case
svn path=/trunk/mcs/; revision=4842
Diffstat (limited to 'mcs/errors/cs0122.cs')
-rwxr-xr-x | mcs/errors/cs0122.cs | 18 |
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; + } +} |