Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs9030-2.cs
1 // CS9030: The left-hand side of an assignment cannot contain a null propagating operator
2 // Line: 15
3
4 public class Test1
5 {
6         public class Test2
7         {
8                 public System.EventHandler<System.EventArgs> E;
9         }
10
11         public Test2 test2 = new Test2 ();
12
13         static void Main ()
14         {
15                 new Test1 ()?.test2.E += null;
16         }
17 }