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:
authorJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-12-01 16:22:43 +0300
committerJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-12-01 16:22:43 +0300
commitd5f0e1a8a4e15aa3e126b97398dcbb3bdfbcf3d1 (patch)
tree80c03740dda761a0e805ce45ffb6684556e4d131 /mcs/errors/cs0050.cs
parent90749b9b58796600b62196d5afaeaea23dddfaf2 (diff)
Test for the Error CS0050. Incompatible accessibility. Return type less accessible than method.
svn path=/trunk/mcs/; revision=9313
Diffstat (limited to 'mcs/errors/cs0050.cs')
-rw-r--r--mcs/errors/cs0050.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/cs0050.cs b/mcs/errors/cs0050.cs
new file mode 100644
index 00000000000..de4fce66a53
--- /dev/null
+++ b/mcs/errors/cs0050.cs
@@ -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 ();
+ }
+}
+