New test.
authorMarek Safar <marek.safar@gmail.com>
Mon, 5 Jan 2009 10:59:04 +0000 (10:59 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 5 Jan 2009 10:59:04 +0000 (10:59 -0000)
svn path=/trunk/mcs/; revision=122430

mcs/errors/cs0122-29.cs [new file with mode: 0644]

diff --git a/mcs/errors/cs0122-29.cs b/mcs/errors/cs0122-29.cs
new file mode 100644 (file)
index 0000000..1f038b2
--- /dev/null
@@ -0,0 +1,19 @@
+// CS0122: `Foo.Bar()' is inaccessible due to its protection level
+// Line: 17
+
+using System;
+
+public class Foo
+{
+       void Bar ()
+       {
+       }
+}
+
+public class Baz : Foo
+{
+       public static void Main (String[] args)
+       {
+               Bar ();
+       }
+}