avoid using a custom sources file for the net_2_1_raw profile
[mcs.git] / errors / cs0170.cs
blob9d7f5a67ee770bc5bef9d30201cf639bc5944613
1 // CS0170: Use of possibly unassigned field `a'
2 // Line: 23
4 using System;
6 namespace cs0170
8 public struct Foo {
9 public int a;
12 public class Bar
14 public void Inc (int x)
16 ++x;
19 static void Main ()
21 Foo f;
22 Bar b = new Bar();
23 b.Inc (f.a);
24 Console.WriteLine (f.a);