New test.
[mono.git] / mcs / errors / cs0136-4.cs
1 // cs0136-4.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
2 // Line: 8
3
4 class X
5 {
6         static int y;
7         static void Main () {
8                 y = 10;
9                 int y = 5;
10         }
11 }