Add enum TrustDirection.cs
[mono.git] / mcs / errors / cs0843-3.cs
1 // CS0843: An automatically implemented property `S.A' must be fully assigned before control leaves the constructor. Consider calling the default struct contructor from a constructor initializer
2 // Line: 11
3
4 using System;
5
6 public struct S
7 {
8         public int A { get; set;}
9         event EventHandler eh;
10
11         public S (int a)
12         {
13                 this.eh = null;
14                 A = a;
15         }
16 }