[Mono-list] Important difference with Microsoft compiler

Martin Baulig martin@gnome.org
15 Mar 2003 14:00:35 +0100


Gustavo Garc=EDa Bernardo <ggb@tid.es> writes:

> 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.

Yes, I fixed that bug somewhere between 0.19 and 0.23.

> > 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

--=20
Martin Baulig
martin@gnome.org
martin@ximian.com