Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-92.cs
1 using System;
2 using System.Collections;
3
4 delegate void D ();
5
6 class MainClass
7 {
8         static void Test (IEnumerable a)
9         {
10                 D d = delegate () {
11                         foreach (object o in a) {
12                                 if (o == null)
13                                         return;
14                         }
15                 };
16                 
17                 d ();
18         }
19         
20     public static int Main ()
21     {
22                 Test (new string [] { "l", null});
23                 return 0;
24     }
25 }