Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-anon-92.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9489c33523a981ad48c6f9cb95df9aa10bb4f30c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections;

delegate void D ();

class MainClass
{
	static void Test (IEnumerable a)
	{
		D d = delegate () {
			foreach (object o in a) {
				if (o == null)
					return;
			}
		};
		
		d ();
	}
	
    public static int Main ()
    {
		Test (new string [] { "l", null});
		return 0;
    }
}