I tried with mcs 0.19 and it compiles, now I tried with 0.23 and it works
like Microsoft. Then, I supose this is the correct way of work.

G.

> -----Mensaje original-----
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] nombre de Artur Brodowski
> Enviado el: viernes, 14 de marzo de 2003 12:42
> Para: [EMAIL PROTECTED]
> Asunto: Re: [Mono-list] Important difference with Microsoft compiler
>
>
> On Fri, 14 Mar 2003 12:26:01 +0100
> Gustavo García Bernardo <[EMAIL PROTECTED]> wrote:
> > using System;
> > namespace ConsoleApplication1
> > {
> > class Class1
> > {
> > static void Main(string[] args)
> > {
> >   for (int i=0;i<10;i++)
> >   {
> >     A a = new A();
> >   }
> >   A a = new A();
> > }
> > }
> > class A
> > {
> > }
> > }
>
> and this is what i get (mono/mcs 0.23):
>
> test.cs(13) error CS0136: A local variable named `a' cannot be
> declared in this
> scope since it would give a different meaning to `a', which is
> already used in
> a `child' scope to denote something else
> Compilation failed: 1 error(s), 0 warnings
>
> regards,
> artb.
> --
> only so many songs can be sung with two lips two lungs and one tongue
>
> _______________________________________________
> Mono-list maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to