[mcs] Member access null propagating operator
[mono.git] / mcs / tests / test-null-operator-04.cs
diff --git a/mcs/tests/test-null-operator-04.cs b/mcs/tests/test-null-operator-04.cs
new file mode 100644 (file)
index 0000000..6796920
--- /dev/null
@@ -0,0 +1,14 @@
+using System;
+
+public class D
+{
+       void Foo ()
+       {
+       }
+
+       public static void Main()
+       {
+               D d = null;
+               Action a = d?.Foo;
+       }
+}