[Mono-devel-list] [Patch] mcs, Error instead of warning CS0105

Martin Baulig martin at ximian.com
Mon Oct 4 13:00:51 EDT 2004

On Mon, 2004-10-04 at 18:56 +0200, Juraj Skripsky wrote:

> Yes, CS0105 is a level 3 warning. That's not the issue. Try compiling
> the test I attached. It will stop with the following error:
> [js at funnyfarm js]$ mcs using_twice.cs
> using_twice.cs(6) error CS0103: The name `Console.WriteLine' could not
> be found in `Test'
> Compilation failed: 1 error(s), 0 warnings


> This is definitely wrong. Csc handles this correctly. With my patch
> applied, the behavior is consistent with csc.

ah, now I understand what's going on ;-)

I thought you just wanted to make it always report that warning, but
indeed that check is always needed to avoid this compilation error (so
we'll always check, but just not report the warning).

Patch looks good, please commit (HEAD and 1.0).


More information about the Mono-devel-list mailing list