a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
333 B
C#
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 });
|
|
}
|
|
}
|