linux-packaging-mono/mcs/tests/test-anon-132.cs

22 lines
316 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
public class Program {
public static void Assert (Action<int> action)
{
action (42);
}
public static void Foo<T> (IList<T> list)
{
Assert (i => {
T [] backup = new T [list.Count];
});
}
public static void Main (string [] args)
{
Foo (args);
}
}