[msbuild] Bump to xplat-master branch HEAD
[mono.git] / mcs / errors / cs8075.cs
index 93333f7187b68d88761f5eefd1405b3f94e25b09..86edc72db360a0bc2b04f393b83fab40d2600525 100644 (file)
@@ -1,9 +1,19 @@
-// CS8075: `A.A()': Structs parameterless instance constructor must be public
-// Line: 6
+// CS8075: An expression tree cannot contain a collection initializer with extension method
+// Line: 12
 
-struct A
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+
+class Program
 {
-       ()
+       static void Main()
        {
+               Expression<Func<Stack<int>>> e = () => new Stack<int> { 42 };           
        }
 }
+
+static class X
+{
+       public static void Add<T>(this Stack<T> s, T value) => s.Push (value);
+}
\ No newline at end of file