diff options
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; + } +} |