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