Test for the Error CS0050. Incompatible accessibility. Return type less accessible...
authorJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>
Sun, 1 Dec 2002 13:22:43 +0000 (13:22 -0000)
committerJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>
Sun, 1 Dec 2002 13:22:43 +0000 (13:22 -0000)
svn path=/trunk/mcs/; revision=9313

mcs/errors/cs0050.cs [new file with mode: 0644]

diff --git a/mcs/errors/cs0050.cs b/mcs/errors/cs0050.cs
new file mode 100644 (file)
index 0000000..de4fce6
--- /dev/null
@@ -0,0 +1,15 @@
+// cs0050.cs: Inconsistent accessibility. Return type less accessible than method.
+// Line: 7
+
+using System;
+
+class Foo {
+       public static Foo Bar () {
+               return new Foo ();
+       }
+
+       public static void Main () {
+               Foo x = Bar ();
+       }
+}
+