1 // CS8075: An expression tree cannot contain a collection initializer with extension method
5 using System
.Collections
.Generic
;
6 using System
.Linq
.Expressions
;
12 Expression
<Func
<Stack
<int>>> e
= () => new Stack
<int> { 42 }
;
18 public static void Add
<T
>(this Stack
<T
> s
, T
value) => s
.Push (value);