using System; using System.Collections.Generic; class Repro { class Runner { public Runner (Action action, T t) { } } static void AssertFoo (IList list) { new Runner (delegate { foreach (T item in list) { } }, 42); } public static void Main () { } }