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

33 lines
452 B
C#

using System;
using System.Collections.Generic;
delegate void D (object param);
class T
{
void Assert (object a) { }
void Execute (Action a) { }
private D GetD<T> (object input)
{
return delegate (object param) {
IList<object> col = null;
try {
object v = null;
Execute (() => {
v = col[0];
Assert (input);
});
} finally {
}
};
}
public static void Main ()
{
new T ().GetD<long> (null) (9);
}
}