Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0136-3.cs
index 3fa3b0a899456082390b9a83c9ccb3a3891603b5..21ee277789b95d4e825cf9982543acdaa008eff9 100644 (file)
@@ -1,11 +1,12 @@
-// cs0136: 'y' has a different meaning later in the block
-// 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<int> v = x => { int i = 9; };
+       }
 }