Merge pull request #3766 from BrzVlad/feature-default-conc
[mono.git] / mcs / errors / cs8072-2.cs
1 // CS8072: An expression tree cannot contain a null propagating operator
2 // Line: 14
3
4 using System;
5 using System.Linq.Expressions;
6
7 public class C
8 {
9         public void TestMethod () { }
10
11         static void Main ()
12         {
13                 C c = null;
14                 Expression<Action> e = () => c?.TestMethod ();
15         }
16 }