Merge pull request #5079 from lambdageek/dev-setvalue
[mono.git] / mcs / errors / cs0165-2.cs
1 // CS0165: Use of unassigned local variable `x'
2 // Line: 16
3
4 class T {
5         void fun (ref int a)
6         {
7                 if (a == 3)
8                 a = 2;
9         }
10
11         void x ()
12         {
13                 int x;
14
15                 if (System.Console.Read () == 1)
16                         x = 1;
17                 fun (ref x);
18         }
19 }