[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / test-anon-162.cs
blob35383b6bc418f45f8ba25e26cbebb0ef950dfe3a
1 using System;
2 using System.Collections.Generic;
4 delegate void D (object param);
6 class T
8 void Assert (object a) { }
9 void Execute (Action a) { }
11 private D GetD<T> (object input)
13 return delegate (object param) {
14 IList<object> col = null;
16 try {
17 object v = null;
19 Execute (() => {
20 v = col[0];
21 Assert (input);
22 });
23 } finally {
28 public static void Main ()
30 new T ().GetD<long> (null) (9);