Merge pull request #3748 from akoeplinger/fix-rng-monotouch
[mono.git] / mcs / errors / cs0170.cs
1 // CS0170: Use of possibly unassigned field `a'
2 // Line: 21
3
4 namespace CS0170
5 {
6         public struct Foo {
7                 public int a;
8         }
9
10         public class Bar
11         {
12                 public void Inc (int x)
13                 {
14                         ++x;
15                 }               
16
17                 static void Main ()
18                 {
19                         Foo f;
20                         Bar b = new Bar();
21                         b.Inc (f.a);
22                 }
23         }
24 }