[loader] LoadFrom of problematic images should reprobe
[mono-project.git] / mcs / errors / cs8075.cs
blob86edc72db360a0bc2b04f393b83fab40d2600525
1 // CS8075: An expression tree cannot contain a collection initializer with extension method
2 // Line: 12
4 using System;
5 using System.Collections.Generic;
6 using System.Linq.Expressions;
8 class Program
10 static void Main()
12 Expression<Func<Stack<int>>> e = () => new Stack<int> { 42 };
16 static class X
18 public static void Add<T>(this Stack<T> s, T value) => s.Push (value);