From d5f0e1a8a4e15aa3e126b97398dcbb3bdfbcf3d1 Mon Sep 17 00:00:00 2001 From: Jaime Anguiano Olarra Date: Sun, 1 Dec 2002 13:22:43 +0000 Subject: [PATCH] Test for the Error CS0050. Incompatible accessibility. Return type less accessible than method. svn path=/trunk/mcs/; revision=9313 --- mcs/errors/cs0050.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mcs/errors/cs0050.cs 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 (); + } +} + -- 2.25.1