linux-packaging-mono/mcs/tests/gtest-etree-15.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

18 lines
333 B
C#

using System;
using System.Linq.Expressions;
using System.Collections.Generic;
static public class Foo
{
static public int Helper (Expression<Predicate<int>> match)
{
return 0;
}
static public void Main ()
{
Expression<Action<List<int>>> exp = x => x.Add (Helper (i => true));
exp.Compile () (new List<int> { 1 });
}
}