X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0136-3.cs;h=21ee277789b95d4e825cf9982543acdaa008eff9;hb=edbc5c2334e10836479d1cc528c68d4ad5b47440;hp=6a8c82e1a61e6db8a67eb5481e11e8f80dcf7717;hpb=d49951ccf584ba637afb1dab7fff714478e3174d;p=mono.git diff --git a/mcs/errors/cs0136-3.cs b/mcs/errors/cs0136-3.cs index 6a8c82e1a61..21ee277789b 100644 --- a/mcs/errors/cs0136-3.cs +++ b/mcs/errors/cs0136-3.cs @@ -1,11 +1,12 @@ -// cs0136-3.cs: A local variable named `y' cannot be declared in this scope because it would give a different meaning to `y', which is already used in a `parent or current' scope to denote something else -// Line: 8 +// CS0136: A local variable named `i' cannot be declared in this scope because it would give a different meaning to `i', which is already used in a `parent or current' scope to denote something else +// Line: 10 -class X +using System; + +class T { - static void y () { } - static void Main () { - y (); - int y = 5; - } + public void Foo (int i) + { + Action v = x => { int i = 9; }; + } }