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

marek safar marek.safar at seznam.cz
Mon Oct 4 18:58:22 EDT 2004


Hello Juraj,

Could you also add a new errors/cs0105 tests ?

Thanks
Marek

> 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
> 
> Hello,
> 
> > 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).
> 
> Martin
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list