summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0841-3.cs
blob: 2d0b97f2846f6987488f6260f9c59f2533f2d5e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0841: A local variable `y' cannot be used before it is declared
// Line: 8

class X
{
   static void y () { }
   static void Main () {
     y ();
     int y = 5;
   }
}