diff options
author | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-12-01 16:22:43 +0300 |
---|---|---|
committer | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-12-01 16:22:43 +0300 |
commit | d5f0e1a8a4e15aa3e126b97398dcbb3bdfbcf3d1 (patch) | |
tree | 80c03740dda761a0e805ce45ffb6684556e4d131 /mcs/errors/cs0050.cs | |
parent | 90749b9b58796600b62196d5afaeaea23dddfaf2 (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.cs | 15 |
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 (); + } +} + |